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?
bounding box Y axis bug(?)
bounding box Y axis bug(?)
Last edited by LosNir on Sun Dec 23, 2007 6:38 pm, edited 2 times in total.