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/osgreflect/osgreflect.cpp

    r3755 r4713  
    2121#include <osg/Depth> 
    2222#include <osg/ClipNode> 
    23  
    24 #include <osgUtil/TransformCallback> 
     23#include <osg/AnimationPath> 
    2524 
    2625#include <osgDB/ReadFile> 
     
    383382    loadedModelTransform->addChild(loadedModel.get()); 
    384383 
    385     osg::ref_ptr<osg::NodeCallback> nc = new osgUtil::TransformCallback(loadedModelTransform->getBound().center(),osg::Vec3(0.0f,0.0f,1.0f),osg::inDegrees(45.0f)); 
     384    osg::ref_ptr<osg::NodeCallback> nc = new osg::AnimationPathCallback(loadedModelTransform->getBound().center(),osg::Vec3(0.0f,0.0f,1.0f),osg::inDegrees(45.0f)); 
    386385    loadedModelTransform->setUpdateCallback(nc.get()); 
    387386