Type Function Object DisplayObject Library display.* Return value none Revision 2017.3110 Keywords translate, x, y, positioning See also object.x object.y
object:translate( deltaX, deltaY )
Numbers. Amount to add to the object's x and y properties respectively.
This cannot be used on a physical body during a collision event. However, your collision handler may set a flag or include a time delay via timer.performWithDelay() so that the action can occur in the next application cycle or later. See the Collision Detection guide for a complete list of which APIs and methods are subject to this rule.