jeffreypersons / Penguin-Quest

An emperor penguin on a quest to bring back food to his son
1 stars 1 forks source link

Physics API Improvements - Extract out internal components and cleanup API #196

Closed jeffreypersons closed 1 year ago

jeffreypersons commented 1 year ago

Recent changes made it evident the API needs some cleanup, as there were a lot more details exposed than there ought to be - such as methods like 'interpolatedMove', 'castAABB_xxx', etc.

Thus, this extracts out an internal namespace for physics code, that contains a solver, kinematic body (basically a wrapper to unify box collider, rigidbody, transform, and ray/shape-cast code).

Those internal components are now managed by our 'source of truth' for physics - PhysicsBody2D.