Physics APIs, Physics file formats, Maya, Max, XSI, Cinema 4D, Lightwave, Blender, thinkingParticles™ and other simulation tools, exporters and importers
-
kjknohw
- Posts: 9
- Joined: Fri Jan 20, 2006 4:14 am
Post
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.
-
Erwin Coumans
- Site Admin
- Posts: 4221
- Joined: Sun Jun 26, 2005 6:43 pm
- Location: California, USA
Post
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.
-
kjknohw
- Posts: 9
- Joined: Fri Jan 20, 2006 4:14 am
Post
by kjknohw »
I don't know python, but the example file allowed me to figure it all out, so I got it working.