Shape:getCollider
EditReturns the Collider the Shape is attached to.
collider = Shape:getCollider()
Arguments
None
Returns
Name | Type | Description |
collider | Collider | The Collider the Shape is attached to. |
Notes
A Shape can only be attached to one Collider at a time.
See also
Collider
Collider:addShape
Collider:removeShape
Shape