jsgoller1 / sprawl

2D Game Engine
GNU General Public License v3.0
0 stars 0 forks source link

Refactor: Split realistic physics behavior into derived component #58

Closed jsgoller1 closed 1 year ago

jsgoller1 commented 1 year ago

This PR turns PhysicsComponent into an abstract base class, and implements RealisticPhysicsComponent and SimplePhysicsComponent as derived classes. We also introduce a few changes to the PhysicsManager so that certain realistic behaviors (i.e. gravity) are no longer part of it. This PR breaks realistic collisions and gravity for the MVP, neither of which we need to have working presently; porng will serve as the test app once completed.