Page 1 of 1
Please give me some advice as to how to use love.physics
Posted: Fri Apr 24, 2015 4:47 pm
by sladjkf
How do you make give an object a velocity cap?
How do you make an object nonrotatable?
Why isn't there a comprehensive love.physics tutorial?
Re: Please give me some advice as to how to use love.physics
Posted: Fri Apr 24, 2015 6:06 pm
by ivan
sladjkf wrote:How do you make give an object a velocity cap?
there already is a 'maxtranslation' threshold but I don't think you can change it from Lua
sladjkf wrote:How do you make an object nonrotatable?
body:setFixedRotation(true)
sladjkf wrote:Why isn't there a comprehensive love.physics tutorial?
take a look at the manual at:
http://box2d.org/
Re: Please give me some advice as to how to use love.physics
Posted: Fri Apr 24, 2015 6:53 pm
by sladjkf
there already is a 'maxtranslation' threshold but I don't think you can change it from Lua
Is there any way to "hack" together a solution?
EDIT:nvm, I figured it out
Re: Please give me some advice as to how to use love.physics
Posted: Fri Apr 24, 2015 10:38 pm
by s-ol
sladjkf wrote:there already is a 'maxtranslation' threshold but I don't think you can change it from Lua
Is there any way to "hack" together a solution?
EDIT:nvm, I figured it out
Please post or explain your solution for future reference, people might find this thread later on.
Re: Please give me some advice as to how to use love.physics
Posted: Sun Apr 26, 2015 9:10 pm
by sladjkf
use body:setLinearVelocity() to set the velocity if it exceeds the velocity desired