Jump to content

Stuck on the ground, arcade physics


Rybar
 Share

Recommended Posts

It did not occur to me, unless I was pressing left/right+up buttons then it was stuck on the ground until the ground-ended then it moved up. Also when pressing up it does a small bounce then launches up that also looks un-realistic so maybe if the keybindings got a bit of a rework it would generate the feeling of flying better.

 

I hope it helps.

Link to comment
Share on other sites

There's nothing wrong with the keybindings; it's very simple left, right, and up, modifying only the velocity of the player. Something is going on with the collision response, where I can't escape the ground unless I double-tap the up key or "wiggle" a bit first.  

Link to comment
Share on other sites

The problem ended up being the order I was doing things in update.  I was checking for input first, and then doing overlap and collide checks.  Flipped the order around, solving collisions first and THEN checking for input, problem solved.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...