Quantcast
Channel: Questions in topic: "wheelcollider"
Viewing all articles
Browse latest Browse all 490

Unity WheelCollider restore state

$
0
0
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: 1. Car accelerates. 2. Through first checkpoint - save state (car position, velocity, rotation and data which depends of project). 3. Through second checkpoint - restore state. Saved time and velocity between second and first. 4. 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.

Viewing all articles
Browse latest Browse all 490

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>