Object is deactivating when it shouldn't.

GavinL
Posts: 5
Joined: Fri Oct 14, 2011 11:23 pm

Object is deactivating when it shouldn't.

Post by GavinL »

Hello,

I seem to have a problem with a rigid body randomly deactivating itself. I'm using a rigid body as a camera for my Ogre3d engine. The reason for that is so I can have nice smooth physics defined motion for the camera. I'm using torque impulses to rotate it and such. But for some reason, bullet decides to deactivate the camera's rigid body even though it still has non-zero angular velocity. I have to manually set camera->activate(true) to make it go again. Any idea what could be the cause of this? Is there a way to force it to stay active all the time?

Thanks,
Gavin
xexuxjy
Posts: 225
Joined: Wed Jan 07, 2009 11:43 am
Location: London

Re: Object is deactivating when it shouldn't.

Post by xexuxjy »

have you set it's activation state to DISABLE_DEACTIVATION?