• 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
Question by S7ARBVCK · Apr 22, 2010 at 11:19 AM · wheelcolliderslip

What is the Unit of "Slip" in the Wheel Collider?

Hey, all,

I need to use Wheel Colliders, and I need to detect for Slip. This is pretty easy with the slip property, but does anyone know what the unit of the returned value is? Even better, does anyone know a range so I can convert this to a percentage slip?

Thanks in advance!

SB

Comment

People who like this

0 Show 0
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

3 Replies

· Add your reply
  • Sort: 
avatar image

Answer by Edy · Jun 08, 2010 at 05:51 PM

Slip is expressed in meters per second (m/s). It's the relative speed between the wheel's contact point and the colliding surface.

The slip value is converted into longitudinal and lateral forces (Newtons) according to the forwardFriction and sidewaysFriction curves of the WheelCollider.

You can calculate a relative slip according to the definition of the friction curve:

  • If slip < curve.extremumSlip, the relative slip is 0.
  • If slip is between curve.extremumSlip and curve.asymptoteSlip, relative slip is the proportion between both values:

relSlip = Mathf.InverseLerp(curve.extremumSlip, curve.asymptoteSlip, slip);

  • If slip is greater than curve.asymptoteSlip, relative slip is 1.0.
Comment
towerer
APProjects
Mr-Mechanical
Bunny83
schlenger

People who like this

5 Show 1 · 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 JeyP4 · May 10, 2018 at 05:31 AM 0
Share

I agreed forward slip is m/sec But sidewayslip in road dynamics books are in angles i.e. arctan(longitudinal speed/lateral speed of tire) so what is the unit of wheelhit.sidewaysSlip ??

avatar image

Answer by e-bonneville · Apr 22, 2010 at 12:08 PM

It is between 0 and 1. For instance, this code copied from the docs:

// Prints "braking slip!" when tire slips badly.
function FixedUpdate() {
    var hit : WheelHit;
    var wheel : WheelCollider = GetComponent(WheelCollider);
    if( wheel.GetGroundHit( hit ) ) {
        if( hit.forwardSlip > 0.5 ) {
            print ("braking slip!");
        }
    }
}

Checks if the slip is 0.5, suggesting a return value with a range from -1 to 1, because acceleration slip is returned as a negative value, while braking slip is positive. This should be pretty easy to convert to a percentage, unless you don't like the negative return value for forward slip.

Comment

People who like this

0 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 S7ARBVCK · Apr 24, 2010 at 09:07 PM 1
Share

Unfortunately, that isn't right - I currently check for skidding at slip == 2.0f, and that works, so it goes beyond 0-1, unfortunately...

avatar image Random Indie S7ARBVCK · May 09, 2010 at 05:36 AM 2
Share

When Commenting on an aswer you should use the comment functionality rather than making a new answer.

avatar image

Answer by JeyP4 · May 11, 2018 at 10:46 PM

Hey guys I found something officialy declared by unity. alt text


slipunity.jpg (85.0 kB)
Comment

People who like this

0 Show 0 · 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

2 People are following this question.

avatar image avatar image

Related Questions

Car CG and WheelHit.forwardSlip questions 1 Answer

Adjusting tire smoke particle emitter based on wheel slip 1 Answer

Simple arcade car Physics 0 Answers

What is an "hard contact point"? 1 Answer

Braketorque isn't showing any effect 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