Urgent Help

Hi to all,

I have a kind of scripting tutorial mod, I use all the scripts from the tutorial but I use my own meshes and textures and I have many problems.
1.The car bounces too high when it collides with the mesh that have mess collider component.
2.The car, when it jumps, it allows the user to continue the movement (like a plane).
3.I can’t get acceleration and de-acceleration, it goes full speed on keybord press (from 0 to the maximun velocity at once)

Any help will be great

Just guessing:

Not sure what is causing this. Do you have any physics materials assigned. If so, look at the Bounce Combine and the Spring settings. You might want to also look at the mass and perhaps the drag settings.

Are you using Physics, or are you modifying the Transforms for movement? Are you checking to see if the car is still in contact with the ground? In the tutorial, see the PlayerCar.js script and the OnCollisionStay() function for an example and the FixedUpdate() for utilizing.

Look at your mass and the force you are applying. Or, if you are doing transforms you will need to gradually increase your translation amount. See the Variables.js script in the tutorial.

Without seeing any scripts or any more description of what you are doing it is a little hard to give specific advise.

Hi Ifrog,

Thank you for that help I’m goinng to see all the elements that you told me. About the scripts, I don’t have modify any script from the scripting tutorial so the files comes with the tutorial, I change the srt only (Mashes, track, ect…)

Thank you in advance.

For your problem with the car bouncing… I just ran into a similar problem.

As far as I know there are 2 things that could cause this.

  1. Make sure that the Mesh Collider component has a check mark next to “Smooth Sphere Collision”. This is of course assuming that your car model has sphere colliders over the wheels. If that smooth sphere checkmark isn’t there it gives me all kinds of problems.

  2. The sphere colliders may be scaled too small. If your sphere collider is too small you might experience problems with the car “sinking” through the game board or skipping and bouncing wildly. You can increase the size of those using the inspector as well. Try a few different settings and see if this helps.

Other than that… see if you can post a link to a web player so we can see what kind of problems you are having.

Hope this helps,

-Tom

Thank you thirdwarlock,

I have raycast colliders on the wheels, can I make any change on the properties to improve that features as you told with sphere colliders as the size of them?
I try to change the settings and disable the springs. Now, the car collides with elements but it pass trought them.

Thank you in advance.