Struct RaycastHit4
Raycasting information.
public struct RaycastHit4Constructors
RaycastHit4(Ray4)
Create and initialize the raycast.
public RaycastHit4(Ray4 ray)RaycastHit4(Ray4, Single, Vector4, Int32)
Create, initialize, and report the raycast.
public RaycastHit4(Ray4 ray, float distance, Vector4 normal, int hash)Fields
distance
The distance to impact point
public float distancehash
The collider hash that hits
public int hashnormal
The surface normal of the impact
public Vector4 normalray
The ray that generates the raycast
public Ray4 rayProperties
collider
The collider that hits
public Collider4 collider { get; }hit
Does raycasting succeeded?
public bool hit { get; }point
The world point to the impact
public Vector4 point { get; }Methods
Set(Single, Vector4, Int32)
Report the raycast
public void Set(float distance, Vector4 normal, int hash)