|
Hey Guys. I am creating a racing car game. I have my car functioning 99% well. It drives/stears fantastic. I have a computer car that races with you. It works beautifully. The only issue im having atm is. When i created my car i used the actual spokes inside the rim to be the rotating axis so it looks more real. But when i start the game my rims stick out the side and it looks so goofy. Should i edit my model and make the wheel one object or should i simply move the actual wheel script to a different component. Here is pictures of the actual bug. This is the car When the rims are being stupid. This Is The Car Behaving beautifully before i play the game. So i was wondering if you guys have any information that could help this error. Thank you :)
(comments are locked)
|
|
Check your wheel colliders pivot and your wheel's pivot if you are making them reference to eachother at runtime. Sorry mate not too sure on what you mean pivit. This is the script for the wheels if this helps. // Define the variables used in the script, the Corresponding collider is the wheel collider at the position of // the visible wheel, the slip prefab is the prefab instantiated when the wheels slide, the rotation value is the // value used to rotate the wheel around it's axel. var CorrespondingCollider : WheelCollider; var SlipPrefab : GameObject; private var RotationValue : float = 0.0; function Update () { }
May 28 '12 at 10:41 AM
AusAndrew19
Sorry if script isnt well presented i dont know how to add it to code box.
May 28 '12 at 11:11 AM
AusAndrew19
@AusAndrew : Sorry for late reply. I think your wheelcollider is too much inward. Check with pulling out your wheelcolliders slightly. And check your car model's wheel's center where it is? Wheelcollider's center and your 3d wheel model's center should be get adjusted. It wld woek fine.
Jun 01 '12 at 10:17 AM
hirenkacha
Mate, Truly... Thank you! :) I Followed what you said and a little adjusting i got it!! Thank you! :)
Jun 04 '12 at 03:39 PM
AusAndrew19
(comments are locked)
|



have you checked your normals settings?
by the way good design...
Thanks mate, I didn't design it i bought this model in a pack. When you say did i check my normal setting what do you mean mate? I'm not too sure on what you mean since im a bit of a noob :)