From a6a4b78417c3f6c74ccba6379365e16d165e2dc5 Mon Sep 17 00:00:00 2001 From: Benoit Bolsee Date: Wed, 14 May 2008 20:22:57 +0000 Subject: 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). --- source/gameengine/SceneGraph/SG_ParentRelation.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/gameengine/SceneGraph/SG_ParentRelation.h') diff --git a/source/gameengine/SceneGraph/SG_ParentRelation.h b/source/gameengine/SceneGraph/SG_ParentRelation.h index 1d211a9f39f..9d360d1c274 100644 --- a/source/gameengine/SceneGraph/SG_ParentRelation.h +++ b/source/gameengine/SceneGraph/SG_ParentRelation.h @@ -90,6 +90,15 @@ public : NewCopy( ) = 0; + /** + * Vertex Parent Relation are special: they don't propagate rotation + */ + virtual + bool + IsVertexRelation( + ) { + return false; + } protected : /** -- cgit v1.2.3