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 kmb · Mar 30, 2012 at 05:24 PM · speedcarracing gamesteeringdriving

Car Steering Relative to Car Speed

I am trying to make a racing game, and it's going well so far, but I just encountered a (rather large) problem. I would like the wheels to steer at a different maximum angle relative to the car's speed. For example: if the car is going below 10 mph, the max steering angle would be 20, if it is going above 20, it would be 8, if it is going above 60, it would be 3. I am using the J controlled car script (from JCar). If anyone would modify this script (or show me how to), I would really appreciate it. I do not know very much about in the language JCar is coded in, or how to code in it, but would not be opposed to coding if someone would show me how to. Thanks in advance!

-kmb

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
1
Best Answer Wiki

Answer by Symyon · Jan 28, 2013 at 01:48 PM

So basically you want from an input (speed) get an output (steering angle coeficient) and that the output is inverse proportional to the input.

So for x = speed, what is f(x) = steering_angle_ coefficient. The answer is: f(x) = a 1/x*, where a can be any constant for which the steering seems OK. This f(x) then can be multiplied with the standard steering you get.

Example: lets say the a we picked is 30. For speed of 1 the steering angle coefficient is: f(1) = 30 For speed of 10 the steering angle coefficient is: f(10) = 3

About the JCar, I'm not familiar with, but it shouldn't be hard to multiply the final value of the steering angle with the coefficient shown above.

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 WindyBut · Jan 28, 2013 at 01:48 PM

I wish I could help you more with this but I am only just learn myself. But if you go here:- http://www.youtube.com/watch?v=kAEpLX3rfms&list=UU3H-n_qgipIYB5bJKjlKUIg∈dex=9 It may go some way to help you out.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Reduce steerangle at high speeds 1 Answer

How to make a steering wheel that rotates when wheels do? 0 Answers

Car exhaust Flame in unity 1 Answer

Car Question 2 Answers

CAR ROTATING HELP 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