i'm prepared for explanations that may contain math.
i have been working on this for too long over many attempts. it kinda works but there are definitely still issues.
i'm having problems with...
- normal calculations being off only some of the time
- when a shape returns to it's normal size, another the shape it collided with previously will get stuck inside
- shapes hovering 1 pixel over the ground???
- shapes are very bouncy
- shapes will not stay on other shapes (line segments can't collide with singular points)
- jiggle (i'll implement damping later on.)
- and cpu (not a priority yet, AABB tree later)
there are some comments that will hopefully help you find the issues in constrain()
and shape_collision()
thanks
[Please log in to post a comment]