I’m wondering why this joint length transition is so slow. It should take 100 ms but is taking about 2000 ms instead.
Full code:
local physics = require( "physics" ) physics.start() local staticBox = display.newRect(100, 100, 100, 100) physics.addBody(staticBox, "static") local hero = display.newRect(100, display.contentHeight - 100, 50, 50 ) physics.addBody(hero, "dynamic") local joint = physics.newJoint( "distance", staticBox, hero, staticBox.x, staticBox.y, hero.x, hero.y ) physics.setDrawMode( "hybrid" ) transition.to(joint, {length = 100, time = 100})