Jump to content

Cant make the car script work


Slastraf
 Share

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.

rover_mesh.fbx

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
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.

 Share

×
×
  • Create New...