Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 sp3cim4n_ · Sep 20, 2019 at 10:55 AM · physicsforces

what is the reason for 'supposed' frictional force, when physics material of ground is configured frictionless.

i have a moving ai, the box. it moves using forces. horizontal(in x-z plane) motion is due to inputs, and only vertical (in y axis) force is gravity.

other than that i have applied a custom quadratic drag, only in horizontal plane. the forces are supposed to balance each other so that max speed achieved by character is maxSpeed. but, it yields less speed, usually 4-5 m/s less.

one contributing factor to this was friction of the horizontal plane gameobject. i applied a physics material configured with 0 friction. still max velocity achieved is less than maxSpeed.

is it due to physics engine iteration? like, gravity pushes the box little inside the plane? or there is some kind of force i am missing.

Comment
Add comment · Show 2
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 Bunny83 · Sep 20, 2019 at 12:09 PM 0
Share

the forces are supposed to balance each other so that max speed achieved by character is maxSpeed

How did you "balance" them? You know that having a quadratic drag is not a hard limit you will reach after x seconds. You will asymptoticly approach that max speed but mathematically you will never reach it. Also keep in $$anonymous$$d that the physics simulation happens in discrete steps.


If you want the user to be able to reach max speed after a certain amount of time you have to allow a slight overshoot and then just limit the velocity in the x-z-plane to max speed manually.


Finally keep in $$anonymous$$d that friction is not only based on the friction value but also depends on the "combine" values. $$anonymous$$ake sure you read the details section carefully. If two objects interact there are always two physics materials involved. So it depends on both settings. In your case you probably want to set the friction to 0 and frictioncombine to either $$anonymous$$imum or multiply. This of course has no effect if the other material uses maximum with a non zero friction value. There's a clear priority order of the combine values.

avatar image Bonfire-Boy · Sep 20, 2019 at 12:10 PM 0
Share

Is that zero-friction material on both objects? What about the "Friction combine" setting on the box? In order for it to experience zero friction you'd either need zero friction on both objects or zero on the box, together with its FrictionCombine set to $$anonymous$$imum or multiply (and the floor's NOT set to maximum as that would override).

Also worth mentioning that the friction model isn't perfect. See the "Please note..." para in the docs: https://docs.unity3d.com/$$anonymous$$anual/class-Physic$$anonymous$$aterial.html

Zero ought still to be zero, $$anonymous$$d.

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

186 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 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 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 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 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 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 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 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 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 avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Solar System Simulator Orbits Not Working 2 Answers

How can I add a reaction force? 0 Answers

take control over particles 0 Answers

buttonNames for GetButton 1 Answer

How to make rigidbody move with another rigidbody respecting physics? 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