Page 2 of 2
Re: Collision detection in Löve?
Posted: Tue Jun 23, 2009 7:50 pm
by Maholain
Sardtok wrote:Have a look at the Body documentation posted above.
There are getters and setters for other physical attributes like velocity which might come in handy.
I'm guessing you're talking about love.physics.body_setVelocity? And what exactly would I use get for? Set I understand...
Re: Collision detection in Löve?
Posted: Tue Jun 23, 2009 8:06 pm
by Robin
Maybe if you want to know the velocity of a body?
Re: Collision detection in Löve?
Posted: Tue Jun 23, 2009 9:38 pm
by Maholain
Okay, so do I put the set Velocity in a keypress callback to make something move?
EDIT:So I got the above working. However... how do I stop the velocity after I release the key?
Re: Collision detection in Löve?
Posted: Wed Jun 24, 2009 6:19 am
by Robin
using a keyreleased callback, and setVelocity(0,0)?
Re: Collision detection in Löve?
Posted: Wed Jun 24, 2009 8:09 pm
by Maholain
Robin wrote:using a keyreleased callback, and setVelocity(0,0)?
Wow, I'm dumb
Thanks for the help everyone!