diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2014-04-24 05:39:33 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2014-04-24 05:39:33 +0400 |
commit | 8cee587bcb44b24cc17a9d6527a63d19dade4e5d (patch) | |
tree | bae00bdf6ac197296c9ea9cdacfb5918f8c3ebf3 /source/gameengine/Physics/common | |
parent | 89c61b20f019766fa57835b3548c4f84d36f6214 (diff) |
BGE Cleanup: Physics conversion is now handled by PHY_IPhysicsEnvironment
The current physics conversion code was moved from
KX_ConvertPhysicsObjects to CcdPhysicsEnvironment.
Diffstat (limited to 'source/gameengine/Physics/common')
-rw-r--r-- | source/gameengine/Physics/common/PHY_IPhysicsEnvironment.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/gameengine/Physics/common/PHY_IPhysicsEnvironment.h b/source/gameengine/Physics/common/PHY_IPhysicsEnvironment.h index d2574b3ca3b..81a45f93993 100644 --- a/source/gameengine/Physics/common/PHY_IPhysicsEnvironment.h +++ b/source/gameengine/Physics/common/PHY_IPhysicsEnvironment.h @@ -46,6 +46,16 @@ class PHY_ICharacter; class RAS_MeshObject; class PHY_IPhysicsController; + +class RAS_MeshObject; +struct DerivedMesh; +class KX_GameObject; +class KX_Scene; + +struct PHY_ShapeProps; +struct PHY_MaterialProps; +class PHY_IMotionState; + /** * pass back information from rayTest */ @@ -190,6 +200,17 @@ class PHY_IPhysicsEnvironment virtual void MergeEnvironment(PHY_IPhysicsEnvironment *other_env) = 0; + virtual void ConvertObject(KX_GameObject* gameobj, + RAS_MeshObject* meshobj, + DerivedMesh* dm, + KX_Scene* kxscene, + PHY_ShapeProps* shapeprops, + PHY_MaterialProps* smmaterial, + PHY_IMotionState *motionstate, + int activeLayerBitInfo, + bool isCompoundChild, + bool hasCompoundChildren) = 0; + #ifdef WITH_CXX_GUARDEDALLOC MEM_CXX_CLASS_ALLOC_FUNCS("GE:PHY_IPhysicsEnvironment") |