No response
Unity WheelCollider restore state
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.
Answer by Okey92 · Oct 18, 2016 at 04:32 PM
I need answer very much, so more precisely: Is there any way to set rpm value? I know it can be done by torque manipulation, but I need do this in single frame - so in next frame there will be rpm in target value..