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
1
Question by andycodes · Feb 21, 2017 at 01:43 AM · physicsmobileoptimizationrollingtimestamp

Rolling Ball Physics Conundrum

I'm having an issue with my physics in a game where a ball has force added to it and results in a roll. To be more specific, I have 2 issues. 1.When the ball is moving, it often skips up in the air or downright bounces backwards as if it hit a wall when going between two planes.(which are perfectly level and each have a box collider) 2.when the ball is shot at a higher speed, it can sometimes sneak through walls.

Now here's where the two become a big problem: when I edit physics properties in the game engine, I am able to fully remove the skipping or hitting effect when the ball is moving from one collider to another. However, this causes more clipping through walls.

HOWEVER: to counteract this, i decrease the physics timestep to 0.01, which still gives occasional clipping, but more or less fixes the clipping problem.

I am aware that i could decrease the timestep further to fully fix clipping, but I'm trying to make a mobile application so I have the feeling that 100 physics updates a second won't go over too smoothly, especially if there are other things going on in the scene as well.

Is there a way that i can get the best of both worlds, that is have a time step above 0.15 and still see no clipping or skipping over planes? I have also tried slightly increasing the sphere collider of the ball to decrease the chances of clipping and the max rotational velocity is currently about 1000. Additionally, the ball doesn't have to be moving that quickly either to escape when it clips

Comment
Add comment · Show 3
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 RobAnthem · Feb 21, 2017 at 05:53 AM 0
Share

Pretty much impossible to help without seeing your code.

avatar image andycodes · Feb 21, 2017 at 07:35 AM 0
Share

There is t really any code to show, The only code currently is On$$anonymous$$ouseDown() Rigidbody.addforce(speed)

And then everything else after that where I'm getting errors is all where the unity physics engine is taking over

avatar image andycodes · Feb 21, 2017 at 07:36 AM 0
Share

To be more specific, the force is only added once to get the ball moving and then it's rolling freely based on unity's physics

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

98 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

Related Questions

"wheel" character 2 Answers

Flip sticky pad as if "rolling" 0 Answers

Making a realistic tire/wheel? 2 Answers

AddTorque application is too slow 1 Answer

How to roll a ball with moving platform. 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