This is a small, basic 2D physics engine created as part of a project for the Sae Institute in Geneva. It handles forces and collisions detection.
- Creation of bodies.
- Attributes:
- Position
- Velocity
- Mass
- Dynamic bodies:
- Forces can be applied to them.
- Physical collision calculations.
- Kinematic bodies
- Not impacted by forces.
- No physical collisions.
- Statics bodies
- Don't move.
- Physical collision calculations.
- Attributes:
- Creation of collider.
- Attributes
- Shape
- Circle
- Rectangle
- Polygon (only work for trigger for now)
- Restitution
- Friction
- trigger mode
- Shape
- Attributes
The samples are made with SDL2 and ImGui.