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
6
Question by Lemonizer · Dec 26, 2012 at 02:31 AM · friction

Exactly how does friction direction 2 work?

I couldn't seem to grasp what friction direction 2 is in the physics material options, what exactly does it do in "non technical terms" with friction?

Thanks in advance :)

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
12
Best Answer

Answer by Fattie · Dec 26, 2012 at 09:34 AM

"Anisotropic friction" is just a fancy term for "directional friction".

Imagine a piece of velcro you're moving around. There is very little friction, UNLESS you are going in one specific direction. Right?

Alternately, imagine an ice skate. In a sense, there is little friction UNLESS you are trying to move exactly sideways.

So, set Friction Direction 2 to some direction - say "north".

Directional friction ("Anisotropic friction") is now turned on.

Simply, set DynamicFriction2 and StaticFriction2 to high values (say both .8) [footnote]

{Note - it is pointless setting FrictionDirection2, unless you also set DynamicFriction2 / StaticFriction2 to some high values, say .8.)

Set the ordinary DynamicFriction and StaticFriction to low values (say both .1).

{Note - in this demo, you won't see any difference unless there is a BIG DIFFERENCE between the normal and the "#2" values. So, set the normal friction values to .1 and the "#2" friction values to .8.)

So, the object will now be EASY to push in any direction .. but it will be HARD to push it "north".

To test this:

  1. make a plane

  2. make a cube

Set the cube exactly as I describe above. .1 for ordinary friction, and .8 for the "#2" directional friction.

Hit Play.

Now, click on the plane. Click the "E" key on your keyboard. You will now be able to tilt the plane.

You will now see easily that if you tilt the plane just a little, the object will begin to slide.

HOWEVER, if you tilt it "north", in the direction you set the "friction2", it will be very hard to make it slide that way.

indeed, get an image of a toy car and stick it on the cube. Make it so that the directional friction is SIDEWAYS relevant to the car.

the toy car will now feel remarkably "real" with that simple step. As you tilt the plane around, the car will "roll" forward and backwards easily, but it will be hard to make it slip sideways - just as a real car would behave.

So, that's all it is.

In a sense, a very simple explanation of direction2 friction is that often, for many objects in certain types of rigs, the direction2 is simply "SIDEWAYS" for the object - because many objects are harder to slide sideways

(You could actually name it 'sideways friction" rather then "directional friction" or "anisotropic friction" - since very often it is literally the sideways direction.)

So, imagine you're putting a toy Santa in a scene. he's easy to slide around in any direction, so there would be no anisotropic friction. But if you put a toy Santa's Sleigh in a scene, that is very hard to slide sideways, correct? So you'd add anisotropic friction in the sideways direction.


[footnote] - recall that static friction is always higher than dynamic friction (I mean in both the real universe, and video game engineering). This applies to both the "normal" static/dynamic friction, and also static2/dynamic2 friction.

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 Lemonizer · Dec 30, 2012 at 06:24 PM 0
Share

Thanks alot! I thought it was something along those lines, very helpful read indeed.

avatar image Fattie · Dec 30, 2012 at 06:25 PM 0
Share

we're here to help !! :) cheers..

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

11 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

Related Questions

half pipe friction loss 0 Answers

Adding Images 1 Answer

How to use EditorUtility.OpenFilePanel to filiter multi extensions? 7 Answers

Problem with Scenes 1 Answer

Decorative Pathways 0 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