Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by user-5550 (google) · Oct 16, 2010 at 01:42 AM · wheelscar-tutorial

Car rear Wheels bug/error/issues!!!

I have been playing with exactly the same issue for hours and hours and its really starting to bother me. i have never had so many issues with exporting etc. there doesnt seem to be any set way of getting the rear wheels to work properly!

My models are made in max, the pivots are set at the centre of each model, i have even done a trick of attaching to a box at that pivot then removing the box element etc so i know the models are clean. I have tried exporting from fbx 2011 with both the y-up and the z-up settings and neither seem to make a difference.

I have tried over and again with the grouping. I have set the groups in max wheelFR/WheelFR.2 etc just as the tutorial states to try to get the process the same. I have also tried the empty game object and this also just ends up with my rear wheels positioned at 0,0,0 in the centre of my car spinning away. front wheels are right EVERY time! There must be some kind of set order like creating an empty object, setting to the wheel position then attaching the wheel. But i cannot find a way no matter how much i try!

im starting to think it could be an error in the car script or it could be the fbx exporter?

So the issues im getting are:

1: Wheels slightly below the ground and no movement at all (usually is the groups were set in max and i applied them straight away) 2: Same as the previous issue but the wheels will turn (usually after i have set the 270 rotation to 0) 3: Front wheels turn and drive the car, rear wheels are set at 0,0,0 in the middle of my car and spin with the movement of the car. 4: the rear wheels are just up in the air and not in any way related to the car as per the models in the model view! 5: For all of the problems above where the car will drive, if i flip it or crash enough so that the body is lifted, the wheels jump back to where they should be!!!!!! Surely this is a code issue to do with the wheels being in contact with the road??

If someone can give me any idea on what i can try i would be so grateful. I can even send the files over im that desperate to understand this!lol

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Edy · Nov 30, 2010 at 01:32 AM

If you are using the Car Tutorial, then is a very bad idea IMHO. The car controller script (Car.js) is obfuscated and specifically designed to work in this exact project, not as generic vehicle control script one can reuse or learn from. It doesn't use the WheelColliders from the model, but it creates its own GameObjects and WheelColliders at runtime! So its very difficult to keep track on what and how the script does anything, or if it's actually using your references or any others it has created internally.

My recommendation is to follow this tutorial instead. I believe you'll see much better results. http://carpe.com.au/slawia/2009/08/unity-wheel-collider-introduction/

If you need something already working to start from, you may check out my vehicle physics here: http://forum.unity3d.com/threads/47366-New-Unity-Car-Tutorial-GTA4-Vehicle-Replica-Project-4050?p=414127&viewfull=1#post414127

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by ebutler3D · Feb 15, 2013 at 11:53 AM

This tutorial i thought was going to be simple, but had all of these same problems.. unfortunately sometimes there isn't a set solution, but i found it helped to import the catamount fbx into max and get it next to your model.. Hierarchy on the wheels goes WHEEL_FL (Dummy), WHEELFL.2 (Wheel mesh) and DiscBrakeFL (mesh also). Make sure your wheels pivots are centred and xformed (Utilities > xform > reset selected). Make sure you are dragging the disc brake obj into the car.js script attached to the object (i swapped the front discbrakes around on the script input and that worked for me).

In regards to the rear wheels I solved this problem with my own model by duplicating the front wheels, renaming them and shifting the back to the position of the back wheels in unity.. This and redoing the tutorial 15 times, and in an urika moment it worked! Sorry I couldn't isolate the exact problem, but keep trying it and changing things would be my advice for those still struggling...

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

Rear wheels move to the center of the car object in car tutorial 1 Answer

Bug with rear wheels in Car Tutorial 2 Answers

How do I make the view camera look ahead of the car in the car tutorial? 2 Answers

Various obsolete warnings in cs and js scripts in unity car tutorial 1 Answer

How to translate car wheels to suspension? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges