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 Creat0r · Dec 31, 2013 at 07:31 AM · controllercars

Simple car problem

Hello, guys! Now I am trying to create simple car. All is done, but my car leads left! Who can help me please do it!

WCol it is array of four WheelColliders of my car. And when I press down arrow for breaking, car turn right.

Also, when I press "play" button and don't hit move buttons, car slightly moves and rotates by "y" axis.

Also I've changed all script to very simple:

 using UnityEngine;
 using System.Collections;
 
 public class CarControllerMy : MonoBehaviour {
 
     public WheelCollider[] WCol;
     public float maxAccel;
     private float accel;
 
     // Use this for initialization
     void Start () {
     
     }
     
     // Update is called once per frame
     void Update () 
     {
         accel = Input.GetAxis("Vertical"); 
 
         foreach (WheelCollider col in WCol)
         {
             col.motorTorque = accel*maxAccel;
         }
     }
 }

But it hasn't solved the problem.

And one more observation. When I attach game objects with wheel colliders attached to array, I see that position and rotation of parent game object are frequently сhanging.

Comment
Add comment · Show 12
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 Benproductions1 · Dec 31, 2013 at 07:57 AM 0
Share

Please ask a proper question next time

avatar image Benproductions1 · Jan 01, 2014 at 02:01 AM 1
Share

$$anonymous$$any things, the most obvious being that you haven't supplied us with any useful information.

"$$anonymous$$y car leads left" is just as useless as it is trying to fix a car over the phone.
Do you call up your technician and ask them to tell you how to fix your own car (without any more information)? No, because that would be utterly stupid and he/she would instantly hang up on you for trolling.

Please ask useful and answerable questions in the future

avatar image Frostbite23 · Jan 01, 2014 at 02:08 AM 1
Share

ben thats awfully rude of you to say and do, Now Creat0r don't give up on this question just because you feel discouraged by ben. just take a screenshot of the code (or paste it With code tags). and we developers can identify the problem and solve it. And like ben said, we need some more information on why this is happening.

And also ben i don't really see how this question is Irrelevant, he just didn't add enough info and you will just close the topic just like that?

avatar image Benproductions1 · Jan 01, 2014 at 02:26 AM 2
Share

@Frostbite23 I've been active in this community since April 2012. I've had quite a slice of experience here. I'm not trying to discourage people from posting good questions, rather discouraging from posting bad ones.

From experience when people post questions like this one, they usually can't be bothered providing more info and never return to the website (It happens quite a lot). No-one can expect anyone to be able to answer a question like the one above and the OP should be smart enough to know this. There is no magical fix-it button and there never was.

I'll be happy to reopen the question if @Creat0r edits the question with the appropriate information, but until that happens I'll leave it as closed, because chances are (from experience) that that won't happen.

There are too many open questions like this where the OP has been asked to provide more information, but never has :)

avatar image JustAnotherDude · Jan 21, 2014 at 06:44 PM 1
Share

What is probably happening is that his model is not properly aligned to the xyz axes and so it is not moving to the front because the front is not the axis he is moving to.

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Multiple Cars not working 1 Answer

A node in a childnode? 1 Answer

XBox Controller Joystick-Driven Mouse Cursor in Unity 0 Answers

Is there a way to integrate a "prone" stance using the integrated Unity character controler with Mecanim ? 0 Answers

Frozen camera following player 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