Skip to content

behcpl/Box2D

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Box2D wrapped worlds fork

This fork implements two major feature that I require for my open world game:

  • Spaces - extends collision filtering allowing multiple independent layers of bodies to coexist inside one world
  • Teleport joint - glues two bodies using defined offset

Intended use

  • Split very large world to chunks with acceptable precision
  • When some body is crossing borders of this chunks, create copies so each space have one
  • Link cloned bodies from different spaces using teleport joint (and remember to divide mass to account for multiple copies of the same object)

Demos

Simple demo (no dynamic space switching) is available, named Wrapped Worlds.

License

Box2D is developed by Erin Catto, and has the zlib license. My additions are using same license.

About

Fork of: Box2D is a 2D physics engine for games

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 63.7%
  • C++ 32.2%
  • Objective-C 2.7%
  • Mathematica 0.5%
  • Objective-C++ 0.5%
  • C# 0.3%
  • Other 0.1%