Box2D::b2RayCastOutput - Ray-cast output data.
my $output = Box2D::b2RayCastOutput->new(); $shape->RayCast( $output, $input, $transform ); my $fraction = $output->fraction(); my $normal = $output->normal();
Ray-cast output data. The ray hits at p1 + fraction * (p2 - p1), where p1 and p2 come from Box2D::b2RayCastInput.
Box2D::b2RayCastInput
Default constructor.
Returns a Box2D::b2RayCastOutput
Box2D::b2RayCastOutput
Parameters:
float32 $fraction (optional)
float32
$fraction
Returns a float32
Box2D::b2Vec2 $normal (optional)
Box2D::b2Vec2
$normal
Returns a Box2D::b2Vec2
Box2D
Box2D::b2AABB
Box2D::b2Shape
See "BUGS" in Box2D
See "AUTHORS" in Box2D
See "COPYRIGHT & LICENSE" in Box2D
To install Box2D, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Box2D
CPAN shell
perl -MCPAN -e shell install Box2D
For more information on module installation, please visit the detailed CPAN module installation guide.