Sign in to follow this  
pTymN

ToyBox v0.1.0 (2D Physics Engine)

Recommended Posts

pTymN    464
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
DMINATOR    240
Looks pretty good, and collision works well, overall I think It would be great if you could add static gravity force, and add posibility to interact with objects in the demo.

Share this post


Link to post
Share on other sites
pTymN    464
What do you mean by static gravity force?

Also, enter starts the simulation, space stops it, and tab steps through frame by frame.

Share this post


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