Re-use memory in PhysicsSystem::prepareSimulation
It currently returns a new vector each call and moves that into applyQueuedMovements. Instead of returning a new vector we can store that in PhysicsSystem and give applyQueuedMovements the reference as it doesn't mutate the vector its safe to do, this will allow the vector to keep the capacity over time.
Edited by Matt