Search found 2 matches
- Wed Aug 24, 2011 12:03 pm
- Forum: Physics authoring tools, serialization, standards and related topics
- Topic: Question: custom btMotionState and serializing objects
- Replies: 1
- Views: 5951
Re: Question: custom btMotionState and serializing objects
I have created a simple loop to iterate over all of the objects in the btDiscreteDynamicsWorld after I step the worl and use the btDefaultMotionState. Here is what I do: dynamicsWorld->stepSimulation(1/60.f,10); for (int i=dynamicsWorld->getNumCollisionObjects()-1; i>=0 ;i--) { btCollisionObject* ob...
- Tue Aug 23, 2011 9:07 pm
- Forum: Physics authoring tools, serialization, standards and related topics
- Topic: Question: custom btMotionState and serializing objects
- Replies: 1
- Views: 5951
Question: custom btMotionState and serializing objects
I am currently using a custom btMotionState to get the location and rotation data of an object when it has moved. I was wondering if there is any way to utilize btMotionState to also retrieve other properties such as velocities so I can ultimately serialize the objects to a database once they have b...