From 0dcba86c6b631a31eadb5e8805c5c94222559e25 Mon Sep 17 00:00:00 2001 From: Kester Maddock Date: Sat, 23 Apr 2005 12:25:21 +0000 Subject: Added the docs & use Python booleans for physics reinstance. --- source/gameengine/PyDoc/KX_MeshProxy.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source/gameengine/PyDoc') diff --git a/source/gameengine/PyDoc/KX_MeshProxy.py b/source/gameengine/PyDoc/KX_MeshProxy.py index f93cd5c1f7b..e43fa3598f0 100644 --- a/source/gameengine/PyDoc/KX_MeshProxy.py +++ b/source/gameengine/PyDoc/KX_MeshProxy.py @@ -95,4 +95,16 @@ class KX_MeshProxy: @rtype: L{KX_VertexProxy} @return: a vertex object. """ + def reinstancePhysicsMesh(): + """ + Updates the physics system with the changed mesh. + + A mesh must have only one material with collision flags, + and have all collision primitives in one vertex array (ie. < 65535 verts) and + be either a polytope or polyheder mesh. If you don't get a warning in the + console when the collision type is polytope, the mesh is suitable for reinstance. + + @rtype: boolean + @return: True if reinstance succeeded, False if it failed. + """ -- cgit v1.2.3