Class SurfaceRaycastHit
Structure used to get information back from a navigation raycast.
Inheritance
System.Object
SurfaceRaycastHit
Namespace: AlchemyBow.Navigation.Surfaces
Assembly: AlchemyBow.Navigation.dll
Syntax
public class SurfaceRaycastHit
Constructors
| Improve this Doc View SourceSurfaceRaycastHit()
Creates an instance of the SurfaceRaycastHit class.
Declaration
public SurfaceRaycastHit()
Fields
| Improve this Doc View Sourcedistance
The distance from the ray's origin to the intersection point.
Declaration
public float distance
Field Value
Type | Description |
---|---|
System.Single | The distance from the ray's origin to the intersection point. |
face
The face that was hit.
Declaration
public Face face
Field Value
Type | Description |
---|---|
Face | The face that was hit. |
position
The intersection point in world space.
Declaration
public Vector3 position
Field Value
Type | Description |
---|---|
UnityEngine.Vector3 | The intersection point in world space. |
Methods
| Improve this Doc View SourceToImmutable()
Create the threadsafe copy of the instance.
Declaration
public SurfaceImmutableRaycastHit ToImmutable()
Returns
Type | Description |
---|---|
SurfaceImmutableRaycastHit | The threadsafe copy of the instance. |