Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- osg::AnimationPath *animationFirstCar() {
- //anim path is list of position with time value
- osg::AnimationPath *pPath = new osg::AnimationPath();
- float localTime = 0.0f;
- pPath->insert(localTime, osg::AnimationPath::ControlPoint(g_Roads[0]->animationPoint(0, g_pRoot)));
- for (int i = 16; i <= 18; i++) {
- pPath->insert(localTime += gc_fTimeUnit, osg::AnimationPath::ControlPoint(g_Roads[i]->animationPoint(0, g_pRoot), osg::Quat(osg::PI_2 * -3, osg::Z_AXIS)));
- }
- pPath->insert(localTime += gc_fTimeUnit, osg::AnimationPath::ControlPoint(g_Roads[30]->animationPoint(0, g_pRoot)));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement