Bug in sio2PhysicRemoveObject
2 posters
Bug in sio2PhysicRemoveObject
There's a bug in the sio2PhysicRemoveObject method.
It reads,
but the array should be addressed with the current index [ i ] in order to search for the object to be removed.
Best,
Matt
It reads,
- Code:
void sio2PhysicRemoveObject( SIO2physic *_SIO2physic,
SIO2object *_SIO2object )
{
int i = 0;
while( i != _SIO2physic->_btDiscreteDynamicsWorld->getNumCollisionObjects() )
{
btCollisionObject *_btCollisionObject = _SIO2physic->_btDiscreteDynamicsWorld->getCollisionObjectArray()[ 0 ];
but the array should be addressed with the current index [ i ] in order to search for the object to be removed.
Best,
Matt
Re: Bug in sio2PhysicRemoveObject
Totally right, tks! and the same thing in sio2PhysicRemoveCamera()
it should be like this:
it should be like this:
- Code:
int i = 0;
while( i != _SIO2physic->_btDiscreteDynamicsWorld->getNumCollisionObjects() )
{
btCollisionObject *_btCollisionObject = _SIO2physic->_btDiscreteDynamicsWorld->getCollisionObjectArray()[ i ];
Permissions in this forum:
You cannot reply to topics in this forum