Changeset 9104 for OpenSceneGraph/branches/OpenSceneGraph-osgWidget-dev/examples/osganimationsolid/osganimationsolid.cpp
- Timestamp:
- 11/05/08 16:45:57 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/branches/OpenSceneGraph-osgWidget-dev/examples/osganimationsolid/osganimationsolid.cpp
r9097 r9104 99 99 osgAnimation::Vec3LinearChannel* channelAnimation2 = new osgAnimation::Vec3LinearChannel; 100 100 channelAnimation2->setTargetName("AnimatedCallback"); 101 channelAnimation2->setName(" rotation");101 channelAnimation2->setName("euler"); 102 102 channelAnimation2->getOrCreateSampler()->getOrCreateKeyframeContainer()->push_back(osgAnimation::Vec3Keyframe(0, osg::Vec3(0,0,0))); 103 103 channelAnimation2->getOrCreateSampler()->getOrCreateKeyframeContainer()->push_back(osgAnimation::Vec3Keyframe(1.5, osg::Vec3(2*osg::PI,0,0))); … … 111 111 mng->registerAnimation(anim2); 112 112 113 // let's start !114 mng->initTimer();115 116 113 mng->playAnimation(anim1); 117 114 mng->playAnimation(anim2);
