Hello,
I want to know if it is possible to dectect the direction of a collision.
I'm using love.physics : world:setCallbacks
But it only detects if the player is touching another body, not the direction.
What I want to do, is to have another animation when the player is touching a wall from the left, from the right, from the down or from the top.
Thank you in advance.
Collision direction
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Collision direction
The contact's normal should give you a direction perpendicular and opposite the direction of contact.
Who is online
Users browsing this forum: Bing [Bot] and 211 guests