Sunday, 15 May 2011

Jungle_05

Project Jungle_05 in the dropbox, working scene file is Jungle_05 also.


The project contains a working car copied straight from a demo project, all we need to do is tweak the settings and stop it from rolling over, and swap out the mesh for our cars.

For the rolling problem, I'm not sure if there is anything in the script or not to keep the car grounded. Two solutions I can think of are putting a rigidbody way below the car and adding mass to it, lowering the center of gravity. The other thing would be to adjust the collider shape so the car can"t land on its side, then use a script to say if the top collider of the car touches the terrain, turn the car back over.

1 comment:

  1. i got an anti roll script but haven't figured out all the errors yet but if i can't sort that out i'll try tweaking the car

    ReplyDelete

Note: only a member of this blog may post a comment.