Method GetRaycastHit
GetRaycastHit(RideVector3, RideVector3, Single, RideLayerMask, Single)
Casts a ray and returns the RaycastHit info.
Declaration
public static RideRaycastHit GetRaycastHit(RideVector3 origin, RideVector3 direction, float maxDistance, RideLayerMask mask, float spreadFactor = 0F)
Parameters
Type | Name | Description |
---|---|---|
RideVector3 | origin | origin of the ray |
RideVector3 | direction | direction of the ray |
System.Single | maxDistance | maximum distance of the ray |
RideLayerMask | mask | layer mask |
System.Single | spreadFactor | the amount to modify the the axis of direction |
Returns
Type | Description |
---|---|
RideRaycastHit | The raycast hit info |
GetRaycastHit(RideVector3, RideVector3, RideLayerMask, Single)
Casts a ray and returns the RaycastHit info.
Declaration
public static RideRaycastHit GetRaycastHit(RideVector3 origin, RideVector3 direction, RideLayerMask mask, float spreadFactor = 0F)
Parameters
Type | Name | Description |
---|---|---|
RideVector3 | origin | origin of the ray |
RideVector3 | direction | direction of the ray |
RideLayerMask | mask | layer mask |
System.Single | spreadFactor | the amount to modify the the axis of direction |
Returns
Type | Description |
---|---|
RideRaycastHit | The raycast hit info |