PackageBox2D.Collision
Classpublic class b2RayCastInput
Sourceb2RayCastInput.as



Public Properties
 PropertyDefined by
  maxFraction : Number
Truncate the ray to reach up to this fraction from p1 to p2
b2RayCastInput
  p1 : b2Vec2
The start point of the ray
b2RayCastInput
  p2 : b2Vec2
The end point of the ray
b2RayCastInput
Public Methods
 MethodDefined by
  
b2RayCastInput(p1:b2Vec2 = null, p2:b2Vec2 = null, maxFraction:Number = 1)
b2RayCastInput
Property detail
maxFractionproperty
public var maxFraction:Number

Truncate the ray to reach up to this fraction from p1 to p2

p1property 
public var p1:b2Vec2

The start point of the ray

p2property 
public var p2:b2Vec2

The end point of the ray

Constructor detail
b2RayCastInput()constructor
public function b2RayCastInput(p1:b2Vec2 = null, p2:b2Vec2 = null, maxFraction:Number = 1)Parameters
p1:b2Vec2 (default = null)
 
p2:b2Vec2 (default = null)
 
maxFraction:Number (default = 1)