I have a player sprite which should only be able to jump when it is on solid grounds. Both the player sprite and the ground are physics objects. What would be the best way to determine if the player is standing on another body/ what would be the best way to appropriately keep a playerSprite.standsOnGround boolean based on recent detected collisions?
(As a workaround I’ll probably just check for near zero y-velocity now, but that doesn’t seem to be perfectly correct.)
Thanks for any help! [import]uid: 10284 topic_id: 4013 reply_id: 304013[/import]