summaryrefslogtreecommitdiff
path: root/tests/test_main.cpp
diff options
context:
space:
mode:
authorPouleyKetchoupp <pouleyketchoup@gmail.com>2021-06-04 16:09:41 -0700
committerPouleyKetchoupp <pouleyketchoup@gmail.com>2021-08-25 08:57:42 -0700
commit6a9ed72185a910f803fff91ef1f408ad91884d20 (patch)
treec830ce6dca827a29305f2e28c960264ac55b9443 /tests/test_main.cpp
parent353bb45e21fadf8da1f6fbbaaf99b8ac8acafea9 (diff)
Clean physics direct body state usage in 2D and 3D physics
Use a C++ callback instead of Callable for synchronizing physics nodes' state with physics servers. Remove usage of PhysicsDirectBodyState in physics nodes when not necessary. Store PhysicsDirectBodyState for bodies individually instead of a singleton to avoid issues when accessing direct body state for multiple bodies. PhysicsDirectBodyState is initialized only when needed, so it doesn't have to be created when using the physics server directly. Move PhysicsDirectBodyState2D and PhysicsDirectBodyState3D to separate cpp files.
Diffstat (limited to 'tests/test_main.cpp')
0 files changed, 0 insertions, 0 deletions