physics engine code example
Example 1: how to make a simple physics engine
struct AABB
{
Vec2 min;
Vec2 max;
};
Example 2: how to make a simple physics engine
struct Circle
{
float radius
Vec position
};
struct AABB
{
Vec2 min;
Vec2 max;
};
struct Circle
{
float radius
Vec position
};