++ed by:
GARU

1 PAUSE user(s)
1 non-PAUSE user(s).

Jeffrey T. Palmer
and 1 contributors

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:

  • float32 $fraction (optional)

Returns a float32

normal()

normal( $normal )

Parameters:

  • Box2D::b2Vec2 $normal (optional)

Returns a Box2D::b2Vec2

SEE ALSO

BUGS

See "BUGS" in Box2D

AUTHORS

See "AUTHORS" in Box2D

COPYRIGHT & LICENSE

See "COPYRIGHT & LICENSE" in Box2D