Blender Git Loki
Git Commits -> Revision e9ca435
Revision e9ca435 by Campbell Barton (master) July 25, 2009, 22:57 (GMT) |
BGE Physics Add support back for reinstancePhysics mesh, a frequently requested feature in the BGE forums. from what I can tell Sumo supported this but bullet never did. Currently only accessible via python at the moment. - rigid body, dynamic, static types work. - instanced physics meshes are modified too. - compound shapes are not supported. Physics mesh can be re-instanced from... * shape keys & armature deformations * subsurf (any other modifiers too) * RAS_TexVert's (can be modified from python) Moved the reinstancePhysicsMesh functions from RAS_MeshObject into KX_GameObject since the physics data is stored here. video and blend file demo. http://www.graphicall.org/ftp/ideasman42/reinstance.ogv http://www.graphicall.org/ftp/ideasman42/reinstance_demo.blend |
Commit Details:
Full Hash: e9ca43521f99c6b9baf6d9278f85323086fcade2
SVN Revision: 21908
Parent Commit: 1c00eac
Lines Changed: +503, -47
14 Modified Paths:
/source/gameengine/Converter/BL_BlenderDataConversion.cpp (+4, -1) (Diff)
/source/gameengine/Converter/BL_MeshDeformer.h (+2, -0) (Diff)
/source/gameengine/Ketsji/KX_ConvertPhysicsObject.h (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp (+40, -1) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+24, -0) (Diff)
/source/gameengine/Ketsji/KX_GameObject.h (+1, -0) (Diff)
/source/gameengine/Ketsji/KX_MeshProxy.cpp (+0, -12) (Diff)
/source/gameengine/Ketsji/KX_MeshProxy.h (+0, -1) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp (+382, -19) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsController.h (+7, -0) (Diff)
/source/gameengine/PyDoc/GameTypes.py (+20, -12) (Diff)
/source/gameengine/Rasterizer/RAS_Deformer.h (+7, -0) (Diff)
/source/gameengine/Rasterizer/RAS_MeshObject.cpp (+7, -0) (Diff)
/source/gameengine/Rasterizer/RAS_MeshObject.h (+8, -0) (Diff)
/source/gameengine/Converter/BL_MeshDeformer.h (+2, -0) (Diff)
/source/gameengine/Ketsji/KX_ConvertPhysicsObject.h (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp (+40, -1) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+24, -0) (Diff)
/source/gameengine/Ketsji/KX_GameObject.h (+1, -0) (Diff)
/source/gameengine/Ketsji/KX_MeshProxy.cpp (+0, -12) (Diff)
/source/gameengine/Ketsji/KX_MeshProxy.h (+0, -1) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp (+382, -19) (Diff)
/source/gameengine/Physics/Bullet/CcdPhysicsController.h (+7, -0) (Diff)
/source/gameengine/PyDoc/GameTypes.py (+20, -12) (Diff)
/source/gameengine/Rasterizer/RAS_Deformer.h (+7, -0) (Diff)
/source/gameengine/Rasterizer/RAS_MeshObject.cpp (+7, -0) (Diff)
/source/gameengine/Rasterizer/RAS_MeshObject.h (+8, -0) (Diff)