]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/model/SGTrackToAnimation.hxx
Work around apparent OSG 3.2.0 normal binding bug.
[simgear.git] / simgear / scene / model / SGTrackToAnimation.hxx
index 717d9552025642004b01ad1397b8ff6ff8afe0c5..96445decfde11bcd6331faf7fdf618c1c5f5b50f 100644 (file)
 
 #include <simgear/scene/model/animation.hxx>
 
+/**
+ * Animation to let an object always track another object. An optional second
+ * slave object can be specified which is rotate to always fit the space between
+ * the root object and the target object. This can be used to eg. create a gear
+ * scissor animation.
+ */
 class SGTrackToAnimation:
   public SGAnimation
 {
@@ -37,7 +43,8 @@ class SGTrackToAnimation:
   protected:
     class UpdateCallback;
 
-    osg::Group     *_target_group;
+    osg::Group     *_target_group,
+                   *_slave_group;
 
     void log(sgDebugPriority p, const std::string& msg) const;
 };