FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Physics in 1.3.1

Go down

Physics in 1.3.1 Empty Physics in 1.3.1

Post  samson Wed Jan 14, 2009 7:11 pm

Hey all,
I've been having trouble getting collisions to work properly in 1.3.1. I am using this physics setting:

sio2->_SIO2physic->_btSoftRigidDynamicsWorld->stepSimulation( 1.0f / sio2->_SIO2window->fps, 0 );

and this for movement:

btMatrix3x3 mat3;
mat3.setFromOpenGLSubMatrix( (btScalar *)object->mat );
object->_btRigidBody->getWorldTransform().setBasis( mat3 );

When I make my player object dynamic it just sits there and is unaffected by physics. When I make it a rigidbody it falls through my ground mesh in jerky steps. Until now I have been doing that as a workaround: exporting most of my scene with 1.3.1 and running it in 1.3.1, but using the 1.2.1 exporter to export the player object. What do I need to change to make the player function in 1.3.1?

Thank you!!!

samson

Posts : 27
Join date : 2008-11-29

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum