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

how to set initial speed of vehicle

$
0
0
Hi, I want to start my car with some initial speed say 500 and want to run it at very high speed. below is my script snippet void update() { FrontLeftWheel.motorTorque = Torque; FrontRightWheel.motorTorque = Torque; } I want to achieve the result same as if I would get by translating a rigidbody (e.g. code below) void update { CarBody.transform.Translate(Vector3.forward); } I am putting the mass of the car as 1000 and of wheel is 20 and tried with torque from 200 to 10000 nm. my unity version is 5.0.0f4 Thanks for any help.

Viewing all articles
Browse latest Browse all 490

Trending Articles



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