Contact:getPosition

Function

Get the location of the contact point between two shapes.

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