Rigid Body not moving after resting for long time? [Closed]

papaonn
Posts: 41
Joined: Wed Nov 20, 2013 4:14 pm

Rigid Body not moving after resting for long time? [Closed]

Post by papaonn »

Hi community,

I have a problem which i couldn't resolve and doesn't understand why it happened,
I have my rigid bodies collision simulated smoothly initially,
but after sometimes everything fall down to the ground and at rest eventually,
then i started to repositioning them back to the initial position, it just doesn't work at all,
it seemed like it is stucked and jammed there forever.

I found that it only happened after it fall down to ground with all things look stable (without movement) then i couldn't call to change the position anymore, but before that the positions could be changed.

What is happening here? :shock: :shock:
I am getting frustrated at these for no clue had been found.

My Code is here :

Code: Select all

            lpRigidObj = btRigidBody::upcast(mlpDiscreteDynamicsWorld->getCollisionObjectArray()[0]);
            t.setIdentity();
            t.setOrigin(btVector3(0, 30, 10));
            //lpRigidObj->setWorldTransform(t);
            lpRigidObj->translate(btVector3(0, 30, 10));
Thank you for reading my problems here.
Last edited by papaonn on Mon Dec 09, 2013 2:56 pm, edited 1 time in total.
papaonn
Posts: 41
Joined: Wed Nov 20, 2013 4:14 pm

Re: Rigid Body not moving after resting for long time? [clos

Post by papaonn »

I got it,
after somewhile i figured out that it was actually state deactivation is making it not moving, just reseting the state deactivation works again.
myBody->setActivationState(DISABLE_DEACTIVATION);