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 Vadim · Jun 17, 2010 at 02:21 PM · wheelscar-tutorial

Bug with rear wheels in Car Tutorial

Hello. I work with Unity for two weeks and I do not understand all the scripts. So 4 days ago I decided to watch some tutorials and found it: "http://unity3d.com/support/resources/tutorials/car-tutorial". It is a awsome tutorial. I made a car game and it was cool, so I decided to make a project with my own car. All things with 3d model are OK. Each wheel consist of the main part, which is linked to DiskBrake, DiskBrakes are linked to dummies. There are no warnings, but there is no result. Car does not want to ride, it just sits on the collider mesh, wheels do not want to turn forward - they only can turn sideways. Then I made my 3d model with my cars body and tutorial cars wheels. Situation is better - car can ride, slip and other things, front wheels are OK, but...but rear wheels fly above the car! They behave well - it means that they do not fly uncontrollable. They move according to road and it looks like that rear colliders are on their places, they do not let the car fall on its back, but the graphics are above the car. I can add more that this bug is when rear wheels are grounded. For example, if car is flipped all wheels are on their places. Also these rear wheels move according to cars gears. On the beginning of the gear they are top and at the end they are below. I hope you could help me.

There are some screenshots: http://i035.radikal.ru/1006/86/68c0c6748c30.jpg http://s15.radikal.ru/i188/1006/67/e6354c39d213.jpg

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
2
Best Answer

Answer by spinaljack · Jun 17, 2010 at 02:29 PM

You've not centred the wheel models, to fix this simply create an empty game object and place the wheel model in the container object.

Make sure that the container is facing forward (x-axis pointing right, y-axis pointing up) and make sure that the wheel model is in the middle of the container.

When you rotate the wheel model, rotate the container instead and it will be perfectly centred.

Comment
Add comment · Show 5 · 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 Vadim · Jun 17, 2010 at 03:04 PM 0
Share

Is this Empty object a container object?

avatar image spinaljack · Jun 17, 2010 at 07:40 PM 0
Share

container = empty game object

avatar image AlexeyS · Nov 23, 2011 at 05:32 PM 0
Share

I have same problem. But my english is bad and i do not quite understand what you suggest to do. In 3dmax my wheel model contains: Wheel_1 (Dummy) -> Brake (Dummy) -> Wheel_2 (Cylinder). All pivots (of one wheel) are in the center of the object and have the same coordinates. Why do I need to center in Unity, again? And how? I tried to do as you said, but did not work. Perhaps I misunderstood.

That's what I have http://www.youtube.com/watch?v=W_4yepQqbSo

avatar image LegionIsTaken · Nov 23, 2011 at 06:00 PM 0
Share

I really like your car :P

avatar image AlexeyS · Nov 23, 2011 at 06:19 PM 0
Share

its test model. i tried to eli$$anonymous$$ate all factors of influence.

avatar image
0

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

The problem initially looks like you're not centering your pivots in the 3d software you are using, but it is not.. or at least wasn't for me, i must have centred pivots and xformed in max 30 times before solving it.

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

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

Car rear Wheels bug/error/issues!!! 2 Answers

Connecting Assets Together 2 Answers

WheelCollider rotates mesh wrong 1 Answer

Alternate physics - Car tutorial - Reversing without a locker? 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