C# Class FarseerPhysics.Collision.RayCastOutput

Ray-cast output data. The ray hits at p1 + fraction * (p2 - p1), where p1 and p2 come from RayCastInput.
Show file Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
Fraction float
Normal Vector2

Property Details

Fraction public property

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
return float

Normal public property

The normal of the face of the shape the ray has hit.
public Vector2 Normal
return Vector2