In my project I must add car state restoring in lap, after reaching e.g. checkpoint. So I need to restore car position, forces, etc. but is it even possible? There is rpm in wheelCollider which cannot be modified.
In my test:
-
Car accelerates.
-
Through first checkpoint - save state (car position, velocity, rotation and data which depends of project).
-
Through second checkpoint - restore state. Saved time and velocity between second and first.
-
Through second checkpoint again - time and velocity is not the same(velocity increased) - difference is about 0.5s (in ~7s between).
What should be stored also? motor torque is calculated dynamically.