I've been looking at LOVE for a little while now but I haven't been able to find the preferred way to disable my character from rotating with physics.
At the moment I have something like this in my update function:
Code: Select all
function update(dt)I could
world:update(dt)
body:setAngle(0)
body:setSpin(0)
end
This Box2d forum post mentions, fixedRotation which seems to be the best way to do this.
http://www.box2d.org/forum/viewtopic.php?p=11428#p11428
(The API says "Useful for characters.")
http://linuxuser.at/elements/doc/box2d/ ... 9d76b6e3ea
But as far as I can tell, LOVE doesn't include a binding for fixedRotation.
Maybe the way I'm already doing it is fine and I'm just being paranoid. For anyone that has solved this problem, how are you doing it? For any LOVE developers, how should I do it?