The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Box2D - 2D Physics Library

SYNOPSIS

use Box2D;

DESCRIPTION

Box2D is a package of Perl modules that provide an object oriented interface to the Box2D Physics Engine for Perl 5.

OVERVIEW

Currently this module is a 1 to 1 binding. This is still a WIP and so far here are the completed class:

b2AABB
b2Body
b2BodyDef
b2CircleShape
b2Contact
b2ContactImpulse
b2ContactListener
b2DistanceJoint
b2DistanceJointDef
b2Filter
b2Fixture
b2FixtureDef
b2FrictionJoint
b2FrictionJointDef
b2GearJoint
b2GearJointDef
b2Joint
b2JointDef
b2LineJoint
b2LineJointDef
b2Manifold
b2MassData
b2Mat22
b2MouseJoint
b2MouseJointDef
b2PolygonShape
b2PrismaticJoint
b2PrismaticJointDef
b2PulleyJoint
b2PulleyJointDef
b2RayCastCallback
b2RayCastInput
b2RayCastOutput
b2RevoluteJoint
b2RevoluteJointDef
b2Shape
b2Transform
b2Vec2
b2WeldJoint
b2WeldJointDef
b2World

USAGE

Have a look at the examples folder for useage examples.

The Box2D Manual and Documentation are also useful:

http://www.box2d.org/documentation.html

TODO

Documentation
Examples
Adding more bindings
Inline::C Support

CONTRIBUTE

To contribute to this module please contact us on github:

https://github.com/PerlGameDev/Box2D-perl

BUGS

Report bugs at GitHub Issues

AUTHORS

Kartik Thakore
Abram Hindle
Tobias Leich
Jeffrey T. Palmer
Breno G. de Oliveira
Zach Morgan

COPYRIGHT & LICENSE

Copyright 2011 Box2D Authors as listed above, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.