Jump to content

unity code help

Agena_

2014121900_carcontorllerscript.thumb.png.e1f06c8cb2807f5252a033a1dad6d903.png

 

i have this car script. on line 24 where it has motor force.

 

if i change it nothing happens. it was at 300 before, but when i put it to 1000 the speed doesnt increase. it shouldd have increased 3 times. i even wrote 1000 on the unity inspector. why isnt it working?

the car just travels at a speed, but i feel its too slow. 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Well if this is like real life (or simulating real life), motor force only affects acceleration (and only top speed in the sense that eventually the drag force equals the motor torque).  My guess is that you need to change something like the friction of the wheels/center of mass/drag of vehicle to actually change top speed.

 

Motor force would only affect acceleration...then again, I don't use unity so I don't know.

3735928559 - Beware of the dead beef

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×