Skip to content

samgreen/Cinder-SimpleBox2D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cinder-SimpleBox2D

A wrapper to make using Box2D effortless

Effortless setup

// Create a physics world with Earth's gravity
mPhysicsWorld = new World( Vec2f(0, 9.8f) );
// Add a solid ground at the bottom of the window
mPhysicsWorld->addSolidGround(this);

Creating dynamic shapes is a snoozefest!

// Add a box at (100,200) position that is 10x20
Box *box = new Box(Vec2f(100, 200), 10, 20);
mPhysicsWorld->addBody(box);

About

A wrapper to make using Box2D effortless

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published