x


Car not turning on plane.

I've made a car, although not with wheel colliders cos i don't have a clue how to script for them, so it's just using addForce and AddTorque, it drives perfectly on a terrain, but put it on top of a plane or cube, and it won't turn, only drive in a straight line. How do I fix this and/or how do I make a really cimple script for a car that will allow turning and straight line movement using WheelCollliders In unity?

more ▼

asked May 18 '10 at 04:19 PM

Fishman92 gravatar image

Fishman92
2.4k 101 113 128

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

If you're making any sort of vehicle, not using a Wheel Collider is a dumb move, especially if your only reason is "because I don't know how to script for it". There are quite a few examples out there of using Wheel Colliders with Unity, have you searched the forums, Google, and the Unify Community Wiki?

And most important of all, read the Wheel Collider Documentation, which outlines all the functions and how you use them (there's even example code in there).

If you use a Wheel Collider, turning your car is really easy (using steerAngle).

more ▼

answered May 18 '10 at 09:21 PM

qJake gravatar image

qJake
11.6k 43 78 161

i tried using steerangle, but thee car just rolled. ?

May 18 '10 at 10:38 PM Fishman92
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1948
x424
x266
x23

asked: May 18 '10 at 04:19 PM

Seen: 1524 times

Last Updated: May 18 '10 at 04:19 PM