33 if (friction < -MAX_FRICTION)
34 friction = -MAX_FRICTION;
35 if (friction > MAX_FRICTION)
36 friction = MAX_FRICTION;
48 if (friction < -MAX_FRICTION)
49 friction = -MAX_FRICTION;
50 if (friction > MAX_FRICTION)
51 friction = MAX_FRICTION;
65 m_body0Wrap(body0Wrap),
66 m_body1Wrap(body1Wrap)
67 #ifdef DEBUG_PART_INDEX
88 btVector3 pointA = pointInWorld + normalOnBInWorld * depth;
132 if (insertIndex >= 0)
int getCacheEntry(const btManifoldPoint &newPoint) const
btVector3 m_lateralFrictionDir1
btScalar getContactBreakingThreshold() const
btPersistentManifold * m_manifoldPtr
btScalar m_combinedRestitution
void btPlaneSpace1(const T &n, T &p, T &q)
ManifoldContactPoint collects and maintains persistent contactpoints.
int getCollisionFlags() const
const btCollisionObject * getBody0() const
const btCollisionObjectWrapper * m_body1Wrap
btScalar calculateCombinedRollingFriction(const btCollisionObject *body0, const btCollisionObject *body1)
User can override this material combiner by implementing gContactAddedCallback and setting body0->m_c...
virtual void addContactPoint(const btVector3 &normalOnBInWorld, const btVector3 &pointInWorld, btScalar depth)
btScalar m_combinedRollingFriction
btTransform & getWorldTransform()
btVector3 m_normalWorldOnB
btVector3 m_positionWorldOnB
btCollisionObject can be used to manage collision detection objects.
btVector3 m_positionWorldOnA
m_positionWorldOnA is redundant information, see getPositionWorldOnA(), but for clarity ...
btScalar getRestitution() const
const btManifoldPoint & getContactPoint(int index) const
static btScalar calculateCombinedFriction(const btCollisionObject *body0, const btCollisionObject *body1)
User can override this material combiner by implementing gContactAddedCallback and setting body0->m_c...
btVector3 can be used to represent 3D points and vectors.
btScalar getRollingFriction() const
btScalar getFriction() const
bool(* ContactAddedCallback)(btManifoldPoint &cp, const btCollisionObjectWrapper *colObj0Wrap, int partId0, int index0, const btCollisionObjectWrapper *colObj1Wrap, int partId1, int index1)
ContactAddedCallback gContactAddedCallback
This is to allow MaterialCombiner/Custom Friction/Restitution values.
btScalar m_combinedFriction
const btCollisionObjectWrapper * m_body0Wrap
btVector3 m_lateralFrictionDir2
void replaceContactPoint(const btManifoldPoint &newPoint, int insertIndex)
static btScalar calculateCombinedRestitution(const btCollisionObject *body0, const btCollisionObject *body1)
in the future we can let the user override the methods to combine restitution and friction ...
int addManifoldPoint(const btManifoldPoint &newPoint, bool isPredictive=false)
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
const btCollisionObject * getCollisionObject() const