Contact:getPosition

Get the location of the contact point between two shapes.

Function

Synopsis

cx, cy = Contact:getPosition( )

Arguments

None.

Returns

number cx
The x coordinate of the contact point.
number cy
The y coordinate of the contact point.

See Also

Other Languages