sharpPhysics
sharpPhysics copied to clipboard
2D physics engine in C#
I noticed that you use fileds Width and Height of PhysicsObject only when PhysicsObject is a Circle and field AABB only when PhysicsObject is AABB. Clearly Width is a circle's...
you define friction as: obj.Velocity -= Friction * dt; this is the same as: ob.Velocity.X -= Friction * dt; ob.Velocity.Y -= Friction * dt; So it means if vector component...
You basicly don't need it (And you don't need designer either) (And it slows down render: [1](https://stackoverflow.com/questions/19863316/why-should-i-not-use-the-picturebox-control), [2](https://stackoverflow.com/questions/11020710/is-graphics-drawimage-too-slow-for-bigger-images/11025428#11025428)) Simple example how to draw without it: [Program.txt](https://github.com/dankelley2/sharpPhysics/files/5007067/Program.txt)