DemoProductions / fighter

2 stars 1 forks source link

Fix player gravity #42

Closed flip40 closed 9 years ago

flip40 commented 9 years ago

Player collision has weird effects on player gravity (I think this is a side effect of the new raycast code, will take a look when I have some time).

I know that the cause of the gravity / sticking is that the player yvelocity is growing, so something is causing that to occur on player collision (jumping fixes it too).

flip40 commented 9 years ago

OnCollisionExit2D is setting jump to 1 when exiting any situation, not just exiting the floor.

flip40 commented 9 years ago

fixed by #43