NAME
Box2D::b2RayCastInput - Ray-cast input data.
SYNOPSIS
my $input = Box2D::b2RayCastInput->new();
$input->p1( $p1 );
$input->p2( $p2 );
$input->maxFraction( $max_fraction );
$shape->RayCast( $output, $input, $transform );
DESCRIPTION
Ray-cast input data. The ray extends from p1 to p1 + maxFraction * (p2 - p1).
METHODS
new()
Default constructor.
Returns a Box2D::b2RayCastInput
maxFraction()
maxFraction( $maxFraction )
Parameters:
float32
$maxFraction
(optional)
Returns a float32
p1()
p1( $p1 )
Parameters:
Box2D::b2Vec2
$p1
(optional)
Returns a Box2D::b2Vec2
p2()
p2( $p2 )
Parameters:
Box2D::b2Vec2
$p2
(optional)
Returns a Box2D::b2Vec2
SEE ALSO
BUGS
See "BUGS" in Box2D