RyanHaraki / 2d-physics-engine

Basic 2D physics engine using Verlet integration method
0 stars 1 forks source link

This is a super cool test issue #2

Closed RyanHaraki closed 1 week ago

RyanHaraki commented 1 month ago

How do you eventually plan to manage the constraints? you'd likely want to check for overlapping rigidbodies each frame cycle

 void manageConstraints()
    {
        if (position.y > 900)
        {
            position.y = 900;
            acceleration.y = 0;
        }

        if (position.x > 900)
        {
            position.x = 900;
            acceleration.x = 0;
        }
    }
RyanHaraki commented 1 month ago

This issues has been marked as completed because we've figured this out. This is such a cool test wowee!

Here's an example of making it longer

printf("This is making it even longer");