RaycastResult.getBody
Returns the Body 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:getBody( )
Parameters:
| Name | Type | Description |
|---|---|---|
raycastResult |
RaycastResult | The raycast result. |
Returns:
| Type | Description |
|---|---|
| Body | The body target. |