I'm guessing you're talking about love.physics.body_setVelocity? And what exactly would I use get for? Set I understand...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.
Collision detection in Löve?
Re: Collision detection in Löve?
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Collision detection in Löve?
Maybe if you want to know the velocity of a body?
Help us help you: attach a .love.
Re: Collision detection in Löve?
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?
EDIT:So I got the above working. However... how do I stop the velocity after I release the key?
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Collision detection in Löve?
using a keyreleased callback, and setVelocity(0,0)?
Help us help you: attach a .love.
Re: Collision detection in Löve?
Wow, I'm dumb Thanks for the help everyone!Robin wrote:using a keyreleased callback, and setVelocity(0,0)?
Who is online
Users browsing this forum: Ahrefs [Bot] and 5 guests