rigidbody, forces and collision testing

This commit is contained in:
maxwes08
2026-09-03 16:50:36 +02:00
parent cf1f083cc5
commit 815bd2d260
28 changed files with 1381 additions and 75 deletions

View File

@@ -0,0 +1,12 @@
using System.Numerics;
namespace PhysicsEngine
{
public static class GravityForce
{
public static void Apply(Body body, float dt)
{
body.ApplyForce(Vector2.UnitY * 9.81f * body.Mass);
}
}
}