Jump to content

Cant make the car script work

Recommended Posts

I have been getting into some frustration with the car script:

This is a video of what happens when I make everything right.

I have installed the prefab car and made everything just like in the car, tire 0,1,,2,3 at the right positions and name, physics are all the same .

When I make the physics shape a box, the tires just disappear and nothing happens :I

In the Video the physics shape is a polyhedron, I havent even started the engine and that happens.

Also I have tryed all other physics shape but none worked.


Share this post

Link to post

Physics shape on the wheels? Try turning collision off.

Everything is just as in the car prefab. no physics

I even tried Cylinders as wheels, no collision and the program doesnt even start

Share this post

Link to post

I'm not at my computer at the minute so I can't check this myself.


Check the model and find where the centre axis are. I had a go with the car script ( using a monster truck model) and the truck kept rolling even going slowly. It turned out that the axis of the model was outside of the model itself. So the model was "top heavy" and was unstable in game.


If this is the case with your model just load it into your favourite modelling program and reposition the axis into the middle of the model and resave it.


Hope this helps.

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...