please help with projectile motion...

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Guest

please help with projectile motion...

Post by Guest »

I think i got brain death here.... arrghhh i can't seem to think anymore because of TONS assignments due SOOONNN..... :(

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.. =>
sirshane
Posts: 31
Joined: Tue Oct 14, 2003 5:02 am
Contact:

Post by sirshane »

The CollisionResponseAnimator really doesn't have a method of applying velocities, as I think it should. I'm actually in the process of fixing this with my copy of the Irrlicht engine source code. Maybe i'll post a patch or something when I get done.
-Shane
Post Reply