• 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 bratila.razvan · Dec 05, 2014 at 06:57 PM · physicsbounce

I have a sphere and a mesh (roulette table). Physics doesn't work.

As in the title. I made a video about it! No matter what i do (i tryed messing with the frictions, bounciness, drag and so on) the ball bounces forever. The end result is for it to behave like a roulette table if it wasn't obvious. Any ideas anyone? https://www.youtube.com/watch?v=dsJzqgXqd_s

Comment

People who like this

0 Show 1
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 robertbu · Dec 05, 2014 at 09:45 PM 2
Share

Someone could probably figure it out quickly if you were willing to put a unitypackage on the net. You might try going to:

  Edit > Project Settings > Physics

And setting 'Min Penetration for Penalty' to 0.0

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by MrSoad · Dec 06, 2014 at 06:22 PM

Ok give t$$anonymous$$s a try. I've increased your scale by 50. I've added the Mouse Orbit script to your Camera and fixed it's view so you can see the roulette table in the Game View. I've added physical materials to your ball and wheel, and a bit of drag to your ball to make it stop.

You will want to build your wheel out of primitive colliders if you want to spin(move) it later. Mesh colliders are not for moving unless set to convex(and convex will not suit the roulette wheel). Use multiple Box colliders as c$$anonymous$$ldren of one root object(t$$anonymous$$s must have the rigidbody on it, none of the c$$anonymous$$ldren should!). Hope t$$anonymous$$s helps to get you started, let me know if you have any problems un-zipping at your end.

https://www.dropbox.com/s/rzvvshk8zwv2woi/New%20Unity%20Project%206%20%282%29.rar?dl=0

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 bratila.razvan · Dec 06, 2014 at 06:30 PM 0
Share

Ok, thank you! This should get me going. Scale was the only thing i haven't thought of. If you ever need help with any native iOS objective-C or cocos2D drop me a bump so i can return the favor! I have recently migrated from that enviroment! All the best to you mate.

avatar image MrSoad · Dec 06, 2014 at 06:32 PM 0
Share

No problem, thanks bratila :) Don't forget to accept my answer too :D

avatar image

Answer by thepenguinmaster · Dec 06, 2014 at 02:49 AM

Is there any bounce on either phsysics material? It seems like it is bouncing from a poorly configured phsysics material. We woudl need to see code and configuration to know for sure. Do you have any scripts that add force to the ball? If you add force, you need to keep in consideration that the ball is rotating, and what was forward force on the ball. may be up, or even backwards. If that is the case, you may need to nest gameobjects and keep the parent from rotating, w$$anonymous$$le the c$$anonymous$$ld (ball) rolls.

Comment

People who like this

0 Show 10 · 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 bratila.razvan · Dec 06, 2014 at 05:19 PM 0
Share

there are no scripts, i tryed doing physics materials or use the default one. It is just a mesh for the table and a sferical colider for the ball. The ball has a rigid body attached to it. I have placed the project here, but it waits for approuval from the moderators.

avatar image MrSoad · Dec 06, 2014 at 05:21 PM 0
Share

Still no sign of the project?

avatar image bratila.razvan · Dec 06, 2014 at 05:25 PM 0
Share

https://dl.dropboxusercontent.com/u/94746300/New%20Unity%20Project%206.zip i hope it get's posted this time

avatar image MrSoad bratila.razvan · Dec 06, 2014 at 05:26 PM 0
Share

Thanks, I will have a quick look at it for you.

avatar image MrSoad · Dec 06, 2014 at 05:31 PM 0
Share

You working on a MAC ? A lot of files did not unzip on my PC...

avatar image bratila.razvan · Dec 06, 2014 at 05:33 PM 0
Share

yes, i am working on a mac. ican RAR the project, give me a second.

Show more comments

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Physics Collision problem(when ball enter to next ground) :( Seeking for solution from more than 1 month 1 Answer

Trouble with spring platform 0 Answers

Bouncing Game - Hitting Off Collider Edges 0 Answers

character bounces when landing on a box 0 Answers

Getting realistic bounces using physics materials. 3 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