Help with projectile motion on irrlicht engine is needed..! =>
say i have ball.md2 object and a flat terrain loaded
with
terrain = smgr->addOctTreeSceneNode(world->getMesh(0));
terrain->setPosition(vector3df(0,0,0));
ITriangleSelector* selector = smgr->createOctTreeTriangleSelector(world->getMesh(0), terrain, 128);
terrain->setTriangleSelector(selector);
selector->drop();
IAnimatedMeshSceneNode* ball = smgr->addAnimatedMeshSceneNode(canonBall);
ball->setPosition(vector3df(0,0,0));
vector3df radius = ball->getBoundingBox().MaxEdge - ball->getBoundingBox().getCenter();
ISceneNodeAnimator* anim = smgr->createCollisionResponseAnimator(selector, ball, radius);
ball->addAnimator(anim);
anim->drop();
then what to do next and how to do it with the ISceneNodeAnimator to animate the ball object to have projectile motion with a specific initial velocity?
........
Thank you for the help.. =>