RaycastResult.getShape
Returns the Shape hit during the raycast. This is only possible if RaycastResult.type is equal to "body", otherwise this will return nil.
Kind: Function
Environments: Game
Game
raycastResult:getShape( )
Parameters:
| Name | Type | Description |
|---|---|---|
raycastResult |
RaycastResult | The raycast result. |
Returns:
| Type | Description |
|---|---|
| Shape | The shape target. |