From 5b722b1e8755c2d3b0c981087f3016f16a2b891a Mon Sep 17 00:00:00 2001 From: Benoit Bolsee Date: Tue, 24 Nov 2009 22:44:29 +0000 Subject: BGE: replace mesh works for Soft Body (including reinstantiation of physics soft body mesh). Even a static mesh can be used as replacement: the mesh will be instantiated with the soft body settings of the object. The position and orientation of the soft body is preserved after the replacement. Known limitation: the velocity of the soft body is reset aftet the replacement. This is because soft body don't have a well defined velocity. --- source/gameengine/Ketsji/KX_BlenderMaterial.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/gameengine/Ketsji/KX_BlenderMaterial.h') diff --git a/source/gameengine/Ketsji/KX_BlenderMaterial.h b/source/gameengine/Ketsji/KX_BlenderMaterial.h index 088d17ea741..c5f5e23c6e7 100644 --- a/source/gameengine/Ketsji/KX_BlenderMaterial.h +++ b/source/gameengine/Ketsji/KX_BlenderMaterial.h @@ -33,8 +33,7 @@ public: KX_BlenderMaterial(); void Initialize( class KX_Scene* scene, - BL_Material* mat, - bool skin + BL_Material* mat ); virtual ~KX_BlenderMaterial(); -- cgit v1.2.3