Logo Search packages:      
Sourcecode: blender version File versions  Download package

void btDiscreteDynamicsWorld::clearForces (  )  [virtual]

the forces on each rigidbody is accumulating together with gravity. clear this after each timestep.

: iterate over awake simulation islands!

Implements btDynamicsWorld.

Definition at line 217 of file btDiscreteDynamicsWorld.cpp.

References btRigidBody::clearForces(), btAlignedObjectArray< T >::size(), and btRigidBody::upcast().

Referenced by stepSimulation().

      ///@todo: iterate over awake simulation islands!
      for ( int i=0;i<m_collisionObjects.size();i++)
            btCollisionObject* colObj = m_collisionObjects[i];
            btRigidBody* body = btRigidBody::upcast(colObj);
            if (body)

Generated by  Doxygen 1.6.0   Back to index