bounding box Y axis bug(?)

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
LosNir
Posts: 43
Joined: Wed Dec 19, 2007 6:38 pm
Location: Israel
Contact:

bounding box Y axis bug(?)

Post by LosNir »

I changed my question, please hybrid delete your message if you can

I tried all day to make my jump action with no success, till i saw this function: isFalling!

It's great but it seems there is some problems with it:

It stills returns true about 2 seconds after i landed on the ground :?

[00:01] Jump action (is falling: false)
[00:02] In air (is falling: true)
[00:03] In air (is falling: true)
[00:04] Land on ground (is falling: true)
[00:05] idle (is falling: true, Y axis: -667.50 )
[00:06] idle (is falling: true, Y axis: -667.98 )
[00:07] idle (is falling: false)

I did some research, and i found the problem -> the y axis!
I draw the current cam pos in the game loop, and it seems the y axis it still decreasing after i land!

And then i tried to lower my bounding box.. and it fixed!
So it's a bug or i'm doing something wrong?
Last edited by LosNir on Sun Dec 23, 2007 6:38 pm, edited 2 times in total.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You usually use the techniques shown in examples 7 and 12.
Post Reply