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 zaino · Feb 25, 2013 at 12:08 AM · physicscollisions

Static collider restitution

Hi all, I read pretty much all I could about static colliders (colliders without a rigid body), but I still can find the reason behind what I'm seeing. I have a basic pinball setup, with a ball with rigid body and collision detection set to continuos dynamic. My problem is that if I set the table to be a static collider, the ball bounces off it like crazy, regardless of the material bounciness (both materials are set to 0 bounciness, and minimum combine). If I assign a rigid body to the table, the problem goes away. Looks like a bug to me. Probably for a static collider collisions are resolved assuming really big mass, but for some reason restitution is not working correctly.

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

Answer by nsxdavid · Feb 25, 2013 at 01:14 AM

A static mesh should not cause that to happen.

First, check the scale you are working at. If things are too small you can sometimes get issues because of the way collisions try to resolve penetration. Create a standard cube in the scene so you can use that as a 1-unit guide.

I infer that the table is a very complex shape. Check that you did not set the mesh collider to be Convex. Also make sure the correct Mesh is set there.

Comment
Add comment · Show 4 · 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 zaino · Feb 25, 2013 at 02:06 AM 0
Share

The mesh is correct and the convex flag is off. The table is 2 units long and 1 wide. I can try to scale it up

avatar image zaino · Feb 25, 2013 at 02:36 AM 0
Share

Also, i might be wrong but I think the problem with small scale arise only if you don't set the collision penalty threshold accordingly. I have $$anonymous$$e set to 0.001

avatar image zaino · Feb 25, 2013 at 03:51 AM 0
Share

Scaling dimensions by a factor of 3 seems to fix the problem. In order to cope for the dimensions change I also have to scale gravity accordingly to preserve the gameplay speed.

BTW @nsxdavid, what's the problem with the previous dimensions? Numerical precision hence instability?

avatar image nsxdavid · Feb 25, 2013 at 06:37 AM 0
Share

Well various limits such as penetration threshold as @zaino mentioned. Extra note: Unity uses PhysX internally, so sometimes you can find info on the Google machine about PhysX that is also relevant.

So answer worked? $$anonymous$$ark it as answered, yeah? :)

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

10 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

Related Questions

Clarification on updates, physics events order and frequency? 1 Answer

How to make an infinite mass solid body 1 Answer

How to make first-person work in zero-G with planets? 1 Answer

Can't set Bounce Threshold below .3 0 Answers

More realistic physics? 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