Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Danielnaf · Jun 11, 2011 at 07:38 PM · car-tutorial

unity car script problem

hello, excuse my english, i am not american. the unity web site gives a car tutorial, but i tried to put the script into my car, BUT IT JUST DON`T WORKS AT ALL FOR ME, I HAVE TRIED COPYING THE "EXAMPLE" CAR`S PROPERTIES ON SCRIPT, BUT IT DOESN`T works, I had search on the web for solution, but nothing. I am deseperated cause I am trying this for a week now... Please, help me, cause I am new to Unity

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

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Simon V · Jun 11, 2011 at 09:29 PM

It is possible something went wrong with importing. So start up a new project or reimport the assets.

Also, make sure you're dragging the script from the project window to the right part of the car GameObject.

Please, also tell us which script is giving you errors and which errors?

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 Danielnaf · Jun 27, 2011 at 06:24 PM

Well,sorry for being late for an answer, I was traveling...well, I am using the car.js in my car,and I am sure that the importing was successful, cause the example "catamount" car is working.But anyways, I inserted the car.js in my car, I organized my car into groups like body, front left wheel,rear right wheel.... And I inserted the properties to the car.js with the same values of the example "catamount" car, only changing the objects like wheels, but if I press play and press the buttons to throttle the car,nothing happens....

Note: I inserted box collider on the car, also rigid body to it, and inserted wheel colliders to each wheel.I guess the problem may be on the wheels, maybe on it's organization.

The organization of the car is similar to that: Car(center of mass;body(body mesh);wheelfl(mesh);wheelfr(mesh);wheelrl(mesh);wheelrr(mesh);)

Now I am also trying to do my own car script, but I Inserted a configurable joint to my disk brake so it could have a suspension, and connected to the body, and it looked fine, but the body has only 1 kg in mass, and I need like 1200 kg, so it would be more realistic. But if I do that, of course the spring will be down, so I changed the joint's values to work well, but when I increase much "spring" or much damping to the Xdrive, the disk brake starts to shake really fast, and I don't get the desired effect,so which properties should I put into Xdrive so the disk brake can sustain 1200 of mass?

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 Forrest_Gimp · Oct 05, 2012 at 09:02 AM

I have the same problem. I have followed the steps of http://unity3d.com/support/resources/files/CarTutorialSection_1.pdf with the provided car model. It works. I then made my own custom car in blender, making sure its hierarchy matches that of the demo-car exactly. I have followed the instructions given in the pdf again, but my car doesn't move.

After experimenting with the scene for a while I have narrowed it down to the wheels. If I use the demo-car wheels on my custom car it will work, but using my own wheels, even when setup exactly the same way, it will not work for some obscure reason. The script creates the wheel-colliders on the fly, and they just fail to do anything. My wheels sink halfway into the ground until the meshcollider of the carbody stops the fall. I tried to set the wheel-colliders up by manually, but that didn't help either.

I tried all week hunting down the magic difference between my homemade wheels and the provided ones, but I just couldn't find what prevents mine from working.

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

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

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

What is the best way to modify the Car Tutorial for more cars? 2 Answers

Im trying to create a car from scratch HELP!!! plz 1 Answer

Need Help Setting Up New Car Using Standard Assets! 0 Answers

Memory leak in Car Tutorial ? 2 Answers


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