The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Box2D::b2CircleShape - A circle shape.

SYNOPSIS

  my $circle = Box2D::b2CircleShape->new();
  $circle->m_radius( $radius );

DESCRIPTION

A circle shape.

METHODS

new()

Default constructor.

Returns a Box2D::b2CircleShape

ComputeAABB( $aabb, $transform )

See also: "ComputeAABB( $aabb, $xf )" in Box2D::b2Shape

Implements Box2D::b2Shape.

Parameters:

  • Box2D::b2AABB $aabb

  • Box2D::b2Transform $transform

ComputeMass( $massData, $density )

See also: "ComputeMass( $massData, $density )" in Box2D::b2Shape

Implements Box2D::b2Shape.

Parameters:

  • Box2D::b2MassData $massData

  • float32 $density

RayCast( $output, $input, $transform )

Implements Box2D::b2Shape.

Parameters:

  • Box2D::b2RayCastOutput $output

  • Box2D::b2RayCastInput $input

  • Box2D::b2Transform $transform

Returns a bool

TestPoint( $transform, $p )

Implements Box2D::b2Shape.

Parameters:

  • Box2D::b2Transform $transform

  • Box2D::b2Vec2 $p

Returns a bool

SEE ALSO

BUGS

See "BUGS" in Box2D

AUTHORS

See "AUTHORS" in Box2D

COPYRIGHT & LICENSE

See "COPYRIGHT & LICENSE" in Box2D