my physics engine!
i've spent a long time working on this. The engine features:
time based circle-circle collision
time based line-circle collision
line-line collision (time based soon to come)
the time based feature helps get rid of objects moving past eachother (i've heard it be called tunneling before).
theres still a few bugs. one that you'll probably see in the demo is the balls forcing themselves inside the boxes and the boxes will sometimes collide "funny".
here it is!
use your mouse to aim, WASD to move turret, and click to fire balls. The balls are shot at 100 pixels per loop to test out the time based collisions.
Looks pretty good!
A few suggestions: when the gun moves, the exact point it is aiming towards doesn't change (when the gun changes position, the point it is aiming at should also be translated...it took me a while just to figure out what end was the shooting end of the barrel!)
But, looks very nice, keep up the good work.
A few suggestions: when the gun moves, the exact point it is aiming towards doesn't change (when the gun changes position, the point it is aiming at should also be translated...it took me a while just to figure out what end was the shooting end of the barrel!)
But, looks very nice, keep up the good work.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement