1. Anders Ruud
  2. love
  3. Issues

Issues

Issue #31 wontfix

calling Body:setFixedRotation(true) doesn't work after calling Body:setMassFromShapes()

Aaron Isaksen
created an issue

In Love 0.6.2 (running on Mac OSX): This works: {{{ bodies[1] = love.physics.newBody(world, 100, 100, 1, 0) shapes[1] = love.physics.newRectangleShape(bodies[1], 0, 0, 10, 10) bodies[1]:setFixedRotation(true) bodies[1]:setMassFromShapes() }}}

But swapping the order of setFixedRotation and setMassFromShapes doesn't work: {{{ bodies[1] = love.physics.newBody(world, 100, 100, 1, 0) shapes[1] = love.physics.newRectangleShape(bodies[1], 0, 0, 10, 10) bodies[1]:setMassFromShapes() bodies[1]:setFixedRotation(true) }}}

In the second case, its as if setFixedRotation is never called.

Comments (4)

  1. Log in to comment