diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2008-05-15 00:22:57 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2008-05-15 00:22:57 +0400 |
commit | a6a4b78417c3f6c74ccba6379365e16d165e2dc5 (patch) | |
tree | 0f4656d3f2dc1a1ee24f1b2ddbc5667bb44e75a2 /source/gameengine/Ketsji/KX_GameObject.h | |
parent | 9f7bc14c572bec936ba5f87c3d7ecc09a852e923 (diff) |
Fix BGE bug #7532: TrackTo Actuator does not work correctly if it has a Vertex Parent. This is only a partial fix: the user must put the parent vertex at the center of the parent object and disable the physics on the tracking object (use empty or collision free object).
Diffstat (limited to 'source/gameengine/Ketsji/KX_GameObject.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_GameObject.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_GameObject.h b/source/gameengine/Ketsji/KX_GameObject.h index b83d63e26bf..5dae59d1d63 100644 --- a/source/gameengine/Ketsji/KX_GameObject.h +++ b/source/gameengine/Ketsji/KX_GameObject.h @@ -368,7 +368,15 @@ public: { return m_bDyna; } - + + /** + * Check if this object has a vertex parent relationship + */ + bool IsVertexParent( ) + { + return (m_pSGNode && m_pSGNode->GetSGParent() && m_pSGNode->GetSGParent()->IsVertexParent()); + } + bool RayHit(KX_ClientObjectInfo* client, MT_Point3& hit_point, MT_Vector3& hit_normal, void * const data); |