Method GetHitData
GetHitData(RideRay, RideID, RideLayerMask)
Performs a raycast using the given attackRay and weapon data
Declaration
public RideRaycastHit GetHitData(RideRay attackRay, RideID weapon, RideLayerMask mask)
Parameters
Type | Name | Description |
---|---|---|
RideRay | attackRay | The ray that is used to intersect geometry |
RideID | weapon | The weapon being used |
RideLayerMask | mask | The collision layers to test |
Returns
Type | Description |
---|---|
RideRaycastHit | The information about the first over hit by the ray. Can be empty is the ray didn't hit anything |