Method Raycast
Raycast(RideRay, out RideRaycastHit)
Physics Raycast
Declaration
public static bool Raycast(RideRay ray, out RideRaycastHit hit)
Parameters
Type | Name | Description |
---|---|---|
RideRay | ray | |
RideRaycastHit | hit |
Returns
Type | Description |
---|---|
System.Boolean | True if there was a hit on the given layer |
Raycast(RideRay, out RideRaycastHit, Single)
Physics Raycast
Declaration
public static bool Raycast(RideRay ray, out RideRaycastHit hit, float maxDistance)
Parameters
Type | Name | Description |
---|---|---|
RideRay | ray | |
RideRaycastHit | hit | |
System.Single | maxDistance |
Returns
Type | Description |
---|---|
System.Boolean | True if there was a hit on the given layer |
Raycast(RideRay, out RideRaycastHit, Single, Int32)
Physics Raycast
Declaration
public static bool Raycast(RideRay ray, out RideRaycastHit hit, float maxDistance, int layerMask)
Parameters
Type | Name | Description |
---|---|---|
RideRay | ray | |
RideRaycastHit | hit | |
System.Single | maxDistance | |
System.Int32 | layerMask |
Returns
Type | Description |
---|---|
System.Boolean | True if there was a hit on the given layer |