Type Function Object Joint Library physics.* Return value none Revision 2018.3332 Keywords joint, setTarget See also object:getTarget() Physics Joints (guide)
Sets the current target (follow) point of a
"touch" joint in content space coordinates. This can be any specific content point, the location of the user's touch, the coordinates of some other object to follow, successive points along a path, etc.
object:setTarget( targetX, targetY )
Numbers. The target coordinates in content space.
myJoint:setTarget( 100, 225 )