vm6502q / OpenRelativity

An open source framework to add the effects of traveling at relativistic speeds to visualizations or games
17 stars 2 forks source link

API refactor #19

Closed WrathfulSpatula closed 4 years ago

WrathfulSpatula commented 4 years ago

Ultimately, new functionality can be made dependent on OpenRelativity. The "GameState" singleton, essential to RelativisticObject instances and controllers, should be built in anticipation of this.

All properties of the Player's transform should be only accessible through the transform itself. Additionally, the GameState singleton might require sub-classing, and it should anticipate this. These are the changes in this pull request, in addition to fixing a minor bug, where the player Rigidbody is not stopped on MovementFrozen = true.