C# Class FarseerPhysics.Collision.RayCastInput

Ray-cast input data. The ray extends from p1 to p1 + maxFraction * (p2 - p1).
Mostra file Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
MaxFraction float
Point1 Vector2
Point2 Vector2

Property Details

MaxFraction public_oe property

The ray extends from p1 to p1 + maxFraction * (p2 - p1). If you supply a max fraction of 1, the ray extends from p1 to p2. A max fraction of 0.5 makes the ray go from p1 and half way to p2.
public float MaxFraction
return float

Point1 public_oe property

The starting point of the ray.
public Vector2 Point1
return Vector2

Point2 public_oe property

The ending point of the ray.
public Vector2 Point2
return Vector2