Struct AbilitySweepHit
One collider the swept query found, with the impact information a hit needs.
public readonly struct AbilitySweepHit
- Inherited Members
Constructors
AbilitySweepHit(Collider, Vector3, Vector3, float)
public AbilitySweepHit(Collider collider, Vector3 point, Vector3 normal, float distance)
Parameters
colliderColliderpointVector3normalVector3distancefloat
Fields
Collider
The collider that was hit.
public readonly Collider Collider
Field Value
- Collider
Distance
Distance along the swept segment, zero for a collider already overlapping at the start.
public readonly float Distance
Field Value
Normal
Surface normal at Point, or the reverse of travel for an overlap.
public readonly Vector3 Normal
Field Value
- Vector3
Point
World point of impact, for effects that need one.
public readonly Vector3 Point
Field Value
- Vector3