JohnCulver / AuxiPunk

AuxiPunk is an AS3 library written on top of FlashPunk, intended primarily to function as game jam base code.
MIT License
0 stars 0 forks source link

The logic for platformer physics to determine if the character is on the ground needs work #7

Closed JohnCulver closed 12 years ago

JohnCulver commented 12 years ago

Currently we just check if the velocity is 0 in the y direction, and that will work almost 100% of the time, but it is possible that an entity could hit 0 y velocity at the peak of a jump (though unlikely that even at 60fps they would hit exactly 0, it could happen).

Also it is strange that calcVelocity is called before apply velocity when we used values calculted in apply velocity...

JohnCulver commented 12 years ago

I feex this finally