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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user