Logo Search packages:      
Sourcecode: blender version File versions

static const btRigidBody* btRigidBody::upcast ( const btCollisionObject *  colObj  )  [inline, static]

to keep collision detection and dynamics separate we don't store a rigidbody pointer but a rigidbody is derived from btCollisionObject, so we can safely perform an upcast

Definition at line 77 of file btRigidBody.h.

Referenced by btSequentialImpulseConstraintSolver::solveGroupCacheFriendly().

            return (const btRigidBody*)colObj->getInternalOwner();

Generated by  Doxygen 1.6.0   Back to index