diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2011-03-17 00:20:24 +0300 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2011-03-17 00:20:24 +0300 |
commit | 6c972d634e54029a4711547ba5870269ba028286 (patch) | |
tree | f8aa244fe849b268242889e9f91a72a4310cc712 /source/gameengine/Ketsji/KX_BulletPhysicsController.cpp | |
parent | 67c7fa46db18a0a5101d9d138389a08794a4a707 (diff) |
BGE PhysicsConstraints.exportBulletFile improvement: also export the object names to .bullet files.
Diffstat (limited to 'source/gameengine/Ketsji/KX_BulletPhysicsController.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_BulletPhysicsController.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_BulletPhysicsController.cpp b/source/gameengine/Ketsji/KX_BulletPhysicsController.cpp index 74f410f05f9..fde01961fd5 100644 --- a/source/gameengine/Ketsji/KX_BulletPhysicsController.cpp +++ b/source/gameengine/Ketsji/KX_BulletPhysicsController.cpp @@ -524,4 +524,15 @@ bool KX_BulletPhysicsController::Update(double time) // return false; } + +const char* KX_BulletPhysicsController::getName() +{ + if (m_pObject) + { + KX_GameObject* gameobj = (KX_GameObject*) m_pObject->GetSGClientObject(); + return gameobj->GetName(); + } + return 0; +} + #endif // USE_BULLET |