Jeffrey T. Palmer > Box2D-0.07 > Box2D::b2RayCastOutput

Download:
Box2D-0.07.tar.gz

Annotate this POD

View/Report Bugs
Source  

NAME ^

Box2D::b2RayCastOutput - Ray-cast output data.

SYNOPSIS ^

  my $output = Box2D::b2RayCastOutput->new();
  $shape->RayCast( $output, $input, $transform );
  my $fraction = $output->fraction();
  my $normal   = $output->normal();

DESCRIPTION ^

Ray-cast output data. The ray hits at p1 + fraction * (p2 - p1), where p1 and p2 come from Box2D::b2RayCastInput.

METHODS ^

new()

Default constructor.

Returns a Box2D::b2RayCastOutput

fraction()

fraction( $fraction )

Parameters:

Returns a float32

normal()

normal( $normal )

Parameters:

Returns a Box2D::b2Vec2

SEE ALSO ^

BUGS ^

See "BUGS" in Box2D

AUTHORS ^

See "AUTHORS" in Box2D

COPYRIGHT & LICENSE ^

See "COPYRIGHT & LICENSE" in Box2D

syntax highlighting: