How make character jump?

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
Aloha

How make character jump?

Post by Aloha »

hello all,
how you make character jump? lets say u just use basic collision tutorial. how would u make the thing jump with like spacebar or something?
thanks
Sparks
Posts: 19
Joined: Thu Oct 21, 2004 1:30 am
Location: Montreal

Post by Sparks »

I'm a newb so my answer might not be all that good.

But if you put the collision responce animator on a given node, it's become affected by gravity. My guest would be: to use a setposition on the node with a vector, putting your node higher on the Y axis, and gravity will send it falling to the ground. You might have to do some tweaking so it does not look gitchy.
XL Game Development
Koogz

Post by Koogz »

Or you could animate object so it's bounding box gets higher from the ground, and trigger it with keypress.
Post Reply