Type Function Object Joint Library physics.* Return value none Revision Current Public Release (2015.2731) 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 )
myJoint:setTarget( 100, 225 )