Optimize actors physics simulation
Remove dependency between simulation and Actor
class. To this end, store all the necessary data inside ActorFrameData
. This is faster because:
- we don't reference any fat
Actor*
in the hot path - we don't take any mutex
- we don't need atomics
This decoupling is necessary for #6160 as it allow to not tie the simulation to a specific game object class.
Edited by Frederic Chardon