• 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 nhftk12 · Jun 07, 2011 at 06:50 AM · car

How to make the car's code more simple

I make in my game a car. To make the car move I downloaded the Car Tutorial (link here) to learn how to learn the basics in car's movement. The problem is that this is not exactly what I looked for because all the effects there, there is to much effects in the car's code so I can't understand what is important to the movement of the car and what not. I'm afraid to edit a bit the code so it will fit to my game and the car will not work becuse I removed an effect or somthing.

My question is this: Someone can help me make the car's code more simple and easy to understanding? just remove all the effects there (the shaders, the lights, the gear...) and keep only what is importent to the movement of the car (move forward/backward and steering including the wheels rotation). What I'm tring to make is just a tank with wheels, not a race game with fast and good looking cars. I use that tutorial because this is the colsest thing for the car movement that I found.

Sorry for poor english.

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 hellcats · Jun 07, 2011 at 07:08 AM

At best, this is a very difficult to read question. With so much code, it would probably be more useful to just post a link to the example project from which it came.

But I think you would be best served by trying to create your own car by slowly adding features until it does what you want rather than paring down a very complex example that you don't understand. Start with simply a chassis and four wheels (not even steerable). Give that a push, or roll it down a hill. See if you can adjust the wheels and suspension to behave like you want. Play with the mass properties and friction values. Attach a graphical object to the wheels so you can see them spinning, etc. I believe you will learn a great deal very quickly this way. You can of course refer to the car demo for ideas, but try to do them yourself rather than just cut and paste.

Comment
Add comment · Show 2 · 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 nhftk12 · Jun 07, 2011 at 07:41 AM 0
Share

I forgot to say (my wrong) that I thought not to post the code and if you want to read the code you need to download the tutorial, but I just posed the code and nobody should download it...

Thnx, I'll try it.

avatar image Meltdown · Jun 07, 2011 at 07:52 AM 0
Share

People run away when they see that much code :p

avatar image
0

Answer by Meltdown · Jun 07, 2011 at 07:24 AM

Posting that amount of code and asking people to clean it up for you is most likely not going to happen on Unity Answers.

If you really need this done badly you're probably better off asking on the Commercial Work Forum to help you for a fee.

And as helicats mentions above, instead of posting so much code you're better off linking so much code to a file or complete scene on the internet somebody can download.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

UnitySteer, steering script for Unity3D 1 Answer

New to car race 1 Answer

script help gameobject to playercar 1 Answer

Real Cars in game... 2 Answers

if occurs for continuesly for 3 seconds 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