41 center = (aabbMin+aabbMax)*
btScalar(0.5);
63 getAabb(curTrans,temporalAabbMin,temporalAabbMax);
76 temporalAabbMaxx += linMotion.
x();
78 temporalAabbMinx += linMotion.
x();
80 temporalAabbMaxy += linMotion.
y();
82 temporalAabbMiny += linMotion.
y();
84 temporalAabbMaxz += linMotion.
z();
86 temporalAabbMinz += linMotion.
z();
90 btVector3 angularMotion3d(angularMotion,angularMotion,angularMotion);
91 temporalAabbMin =
btVector3(temporalAabbMinx,temporalAabbMiny,temporalAabbMinz);
92 temporalAabbMax =
btVector3(temporalAabbMaxx,temporalAabbMaxy,temporalAabbMaxz);
94 temporalAabbMin -= angularMotion3d;
95 temporalAabbMax += angularMotion3d;
110 return "btCollisionShapeData";
btScalar length(const btQuaternion &q)
Return the length of a quaternion.
void btBulletCollisionProbe()
virtual int calculateSerializeBufferSize() const
virtual void * getUniquePointer(void *oldPtr)=0
virtual void serializeSingleShape(btSerializer *serializer) const
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...
const btScalar & x() const
Return the x value.
const btScalar & getZ() const
Return the z value.
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 getContactBreakingThreshold(btScalar defaultContactThresholdFactor) const
const btScalar & getY() const
Return the y value.
const btScalar & getX() const
Return the x value.
btScalar length() const
Return the length of the vector.
const btScalar & y() const
Return the y value.
virtual btScalar getAngularMotionDisc() const
getAngularMotionDisc returns the maximus radius needed for Conservative Advancement to handle time-of...
btVector3 can be used to represent 3D points and vectors.
virtual void finalizeChunk(btChunk *chunk, const char *structType, int chunkCode, void *oldPtr)=0
virtual void serializeName(const char *ptr)=0
virtual const char * findNameForPointer(const void *ptr) const =0
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64 ...
virtual btChunk * allocate(size_t size, int numElements)=0
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
virtual const char * serialize(void *dataBuffer, btSerializer *serializer) const
fills the dataBuffer and returns the struct name (and 0 on failure)
const btScalar & z() const
Return the z value.