Show
Ignore:
Timestamp:
11/09/05 16:11:22 (8 years ago)
Author:
robert
Message:

Added the support in AnimationPathCallback? for taking a pivot, axis and rotation rate
paramters in its constructor to allow it to be used to create rotations around a point.
This provides the same interface and functionality as osgUtil::TransformCallback? but
has the advantage and AnimationPathCallback? is fully supported by the .osg and .ive file formats.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgprerender/osgprerender.cpp

    r4700 r4713  
    1616#include <osgGA/DriveManipulator> 
    1717 
    18 #include <osgUtil/TransformCallback> 
    1918#include <osgUtil/SmoothingVisitor> 
    2019 
     
    451450    loadedModelTransform->addChild(loadedModel); 
    452451 
    453     osg::NodeCallback* nc = new osgUtil::TransformCallback(loadedModelTransform->getBound().center(),osg::Vec3(0.0f,0.0f,1.0f),osg::inDegrees(45.0f)); 
     452    osg::NodeCallback* nc = new osg::AnimationPathCallback(loadedModelTransform->getBound().center(),osg::Vec3(0.0f,0.0f,1.0f),osg::inDegrees(45.0f)); 
    454453    loadedModelTransform->setUpdateCallback(nc); 
    455454