Page 1 of 1

How do I prevent deactivation?

Posted: Fri Jan 20, 2006 5:30 am
by kjknohw
How do I prevent deactivation? I am sort of a noob, so I just want to know how. Just in the blender built in game.

Posted: Fri Jan 20, 2006 5:51 am
by Erwin Coumans
run in a python script at least once for the game, and add

import PhysicsConstraints
PhysicsConstraints.setDeactivationTime(0.0)

That should do the job. See the 'debug' script in jenga7.blend as an example.

Posted: Sat Jan 21, 2006 2:01 am
by kjknohw
I don't know python, but the example file allowed me to figure it all out, so I got it working.