x


car slides to the right or left when i accelerate... why?

hello i am using this car script i got from a tutorial. I modified it to fit my needs such as i added different drive trains(front-wheel drive, rear-wheel drive etc.) to it and fixed a couple bugs i found. but heres my problem when i accelerate depending on the cars drive train it will slide to either the left or the right and i don't know why. any suggestions?

more ▼

asked Apr 26 '10 at 08:43 PM

slkjdfv gravatar image

slkjdfv
330 24 28 32

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

2 answers: sort voted first

http://answers.unity3d.com/search?q=wheel+collider

It's simply how the physics model is set up in physX, you'll notice that raptor safari doesn't use the built in wheel colliders and made their own ray cast wheels. You can make sure that the vehicle centre of gravity is perfectly aligned and that the wheels are equally spaced, 4 wheel drive cars are more stable. You can also modify your physics on the fly to stabilise the car yourself like lowering the centre of gravity, adjusting wheel torque, increasing angular drag when not turning etc. That's called tuning.

more ▼

answered Apr 26 '10 at 08:53 PM

spinaljack gravatar image

spinaljack
9.1k 18 31 91

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

Hi

you can also set Stiffness Factor of sideway friction as per your change log. I am also using Car Tutorial script for my bike game. My bike is rear wheel drive i set 0.083 stiffness Factor for side way friction and it's work better for me.

more ▼

answered Aug 08 '12 at 10:09 AM

PAHeartBeat gravatar image

PAHeartBeat
211 3 4

(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:

x417
x101

asked: Apr 26 '10 at 08:43 PM

Seen: 1759 times

Last Updated: Aug 08 '12 at 10:09 AM