Bullet Collision Detection & Physics Library
|
Go to the documentation of this file.
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";
do not change those serialization structures, it requires an updated sBulletDNAstr/sBulletDNAstr64
virtual void serializeSingleShape(btSerializer *serializer) const
virtual btScalar getContactBreakingThreshold(btScalar defaultContactThresholdFactor) const
btScalar length() const
Return the length of the vector.
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
virtual void * getUniquePointer(void *oldPtr)=0
virtual const char * findNameForPointer(const void *ptr) const =0
const btScalar & y() const
Return the y value.
const btScalar & getX() const
Return the x value.
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....
void btBulletCollisionProbe()
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 void getBoundingSphere(btVector3 ¢er, btScalar &radius) const
virtual void finalizeChunk(btChunk *chunk, const char *structType, int chunkCode, void *oldPtr)=0
btVector3 can be used to represent 3D points and vectors.
virtual void serializeName(const char *ptr)=0
const btScalar & getZ() const
Return the z value.
virtual const char * serialize(void *dataBuffer, btSerializer *serializer) const
fills the dataBuffer and returns the struct name (and 0 on failure)
const btScalar & getY() const
Return the y value.
virtual btScalar getAngularMotionDisc() const
getAngularMotionDisc returns the maximum radius needed for Conservative Advancement to handle time-of...
const btScalar & x() const
Return the x value.
virtual int calculateSerializeBufferSize() const
btScalar length(const btQuaternion &q)
Return the length of a quaternion.
virtual btChunk * allocate(size_t size, int numElements)=0
const btScalar & z() const
Return the z value.