As a response to issue [#28483] "Enable/Disable Rigid Body actuator do nothing" reported by Jean-Francois Gallant (pyroevil), I'm adding preliminary support to enable and disable rigid body physics on dynamic objects. This is can be done via the Edit Object Actuator or through KX_GameObject.enableRigidBody() and KX_GameObject.disableRigidBody(). Thanks to Sergej Reich for his help with the patch.

This commit is contained in:
Mitchell Stokes
2012-07-09 04:57:21 +00:00
parent 4ff0efd5a2
commit 9d73cbf2c4
5 changed files with 21 additions and 27 deletions

View File

@@ -1335,18 +1335,10 @@ Game Types (bge.types)
Rigid body physics allows the object to roll on collisions.
.. note::
This is not working with bullet physics yet.
.. method:: disableRigidBody()
Disables rigid body physics for this object.
.. note::
This is not working with bullet physics yet. The angular is removed but rigid body physics can still rotate it later.
.. method:: setParent(parent, compound=True, ghost=True)
Sets this object's parent.