physics thread problem
2 posters
physics thread problem
I am using a thread like templatePhysicCullingThread( void *_ptr ) in tutorial 6_2 to call the functions
sio2PhysicRender( sio2->_SIO2physic, 1.0f / 60.0f, 1 );
sio2ResourceCull( _SIO2resource, sio2->_SIO2camera );
to simulate the physics of 2 objects. For some reason the simulator runs for 1 second and then gets stuck at an unidentified location. Any clues anyone? Do I need an extra sleep command in the thread?
sio2PhysicRender( sio2->_SIO2physic, 1.0f / 60.0f, 1 );
sio2ResourceCull( _SIO2resource, sio2->_SIO2camera );
to simulate the physics of 2 objects. For some reason the simulator runs for 1 second and then gets stuck at an unidentified location. Any clues anyone? Do I need an extra sleep command in the thread?
sctm81- Posts : 29
Join date : 2009-04-24
Re: physics thread problem
Are you messing around with the btRigidBody in the main thread? Cuz Bullet is not thread safe... The only operation that you are allowed to do is read the matrix... any other write operation handled by Bullet will result into a segfault.
Similar topics
» Physics in 1.3.1
» Update from 1.3.5 to 1.4 caused physics problem.. *solved*
» Problem: Physics Objects(Kinematic) with IPO curves
» physics object inside another physics object
» Physics Issue - 1.35 and 1.4
» Update from 1.3.5 to 1.4 caused physics problem.. *solved*
» Problem: Physics Objects(Kinematic) with IPO curves
» physics object inside another physics object
» Physics Issue - 1.35 and 1.4
Permissions in this forum:
You cannot reply to topics in this forum