Jump to content
  • Advertisement
Sign in to follow this  

ToyBox v0.1.0 (2D Physics Engine)

This topic is 4792 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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
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  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!