Struct RayCastOutput
- Namespace
- Alis.Core.Physic.Collision
- Assembly
- Alis.dll
Ray-cast output data.
public struct RayCastOutput
Inherited Members
Fields
Fraction
The ray hits at p1 + fraction * (p2 - p1), where p1 and p2 come from RayCastInput. Contains the actual fraction of the ray where it has the intersection point.
public float Fraction
Field Value
Normal
The normal of the face of the shape the ray has hit.
public Vector2 Normal