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 Oscar-2 · Nov 14, 2010 at 03:14 PM · rigidbodycarmoving

How do I make a car in unity?

I've set up a car in unity3d 3.0 following this tutorial really closely http://www.gotow.net/andrew/blog/?page_id=78 and I want to make it go now, but the tutorial sort of assumes I know something about scripting, and really don't know a single thing so I'm pretty stuck...

So if anyone could help me out just setting up some controls to make it drive-able that'd be greatly appreciated!

Please note that I'm completely new to the idea of scripting, sorry!

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Yoerick · Nov 14, 2010 at 09:00 PM

You could use a combination of pre-made scripts that are included in the Unity package. For what I understand, you want to make a Third Person Controller, this can be achieved by adding a movement script to the object and a camera follow script to a camera that will follow your car.

These are two scripts that are already written for you. Open your Unity project, go to "C:\program files\Unity\Editor\Standard packages" and double click the "Character Controller" and the "Scripts" unity packages. This will import the standard scripts into your current Unity project.

Now select the camera you want to follow the car. Go to Component -> Camera Control -> Smooth Follow. This will add the smooth follow script to your camera. Go to the script component and you should see a variable "Target" which is set to "none". Drag your object to this field. Now the script will make sure your camera allways looks at the car and also follows it. You can also adjust some variables like height and distance.

For the movement there's also a standard script called "FPS Input Controller". Select your car you want to move, go to Component -> Character -> FPS Input controller.

When you've added these two scripts you already have a basic Third Person controller.

However, writing your own Third Person Controller script is advised if you want to accomplish a specific effect. Here's a handy link: Third Person Controller. Especially page 4 is probably intereseting for you ;)

hope it works

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

No one has followed this question yet.

Related Questions

if moving statement 1 Answer

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

add force get stronger over time slow. 2 Answers

WheelColliders Bug Fix 0 Answers

How to set max speed for this car ? 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