39 center = (aabbMin + aabbMax) *
btScalar(0.5);
60 getAabb(curTrans, temporalAabbMin, temporalAabbMax);
73 temporalAabbMaxx += linMotion.
x();
75 temporalAabbMinx += linMotion.
x();
77 temporalAabbMaxy += linMotion.
y();
79 temporalAabbMiny += linMotion.
y();
81 temporalAabbMaxz += linMotion.
z();
83 temporalAabbMinz += linMotion.
z();
87 btVector3 angularMotion3d(angularMotion, angularMotion, angularMotion);
88 temporalAabbMin =
btVector3(temporalAabbMinx, temporalAabbMiny, temporalAabbMinz);
89 temporalAabbMax =
btVector3(temporalAabbMaxx, temporalAabbMaxy, temporalAabbMaxz);
91 temporalAabbMin -= angularMotion3d;
92 temporalAabbMax += angularMotion3d;
110 return "btCollisionShapeData";
void btBulletCollisionProbe()
btScalar length(const btQuaternion &q)
Return the length of a quaternion.
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
virtual void getBoundingSphere(btVector3 ¢er, btScalar &radius) const
void calculateTemporalAabb(const btTransform &curTrans, const btVector3 &linvel, const btVector3 &angvel, btScalar timeStep, btVector3 &temporalAabbMin, btVector3 &temporalAabbMax) const
calculateTemporalAabb calculates the enclosing aabb for the moving object over interval [0....
virtual btScalar getAngularMotionDisc() const
getAngularMotionDisc returns the maximum radius needed for Conservative Advancement to handle time-of...
virtual void getAabb(const btTransform &t, btVector3 &aabbMin, btVector3 &aabbMax) const =0
getAabb returns the axis aligned bounding box in the coordinate frame of the given transform t.
virtual btScalar getContactBreakingThreshold(btScalar defaultContactThresholdFactor) const
virtual int calculateSerializeBufferSize() const
virtual void serializeSingleShape(btSerializer *serializer) const
virtual const char * serialize(void *dataBuffer, btSerializer *serializer) const
fills the dataBuffer and returns the struct name (and 0 on failure)
virtual btChunk * allocate(size_t size, int numElements)=0
virtual void * getUniquePointer(void *oldPtr)=0
virtual void serializeName(const char *ptr)=0
virtual const char * findNameForPointer(const void *ptr) const =0
virtual void finalizeChunk(btChunk *chunk, const char *structType, int chunkCode, void *oldPtr)=0
btVector3 can be used to represent 3D points and vectors.
const btScalar & getZ() const
Return the z value.
const btScalar & z() const
Return the z value.
btScalar length() const
Return the length of the vector.
const btScalar & getY() const
Return the y value.
const btScalar & x() const
Return the x value.
const btScalar & getX() const
Return the x value.
const btScalar & y() const
Return the y value.
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64