Sign in to follow this  

ToyBox v0.1.0 (2D Physics Engine)

Recommended Posts

It's optimized now. :-D Its limited to the screen refresh rate.

Oh yeah, it requires clanlib in order to compile.

v 0.1.1

The ToyBox collision code uses:

2D Swept Collisions.
Concave/Self-intersecting polygons
Iterative collision testing
Support for arbitrary transformation of moving objects (rotations, animations)
Garantees zero intersections
Persistant contact points (eliminates jiggling when objects are at rest)
Detailed collision information
Objects can slide across each other

In the code:

Line segment-line segment intersection test that returns the intersection point
Swept circle - circle intersection test that returns normal of collision and
T=0..1 as estimation of intersection point
Swept circle - edge intersection test
Swept edge - circle intersection test

Share this post

Link to post
Share on other sites
Sign in to follow this