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 Sisyphus · Mar 22, 2011 at 10:51 AM · physicsgravity

Pinball, Sphere and gravity, hitting sphere off the table

Hi there.

To get me started in Unity I have created a simple pinball game, with two paddles using a hinge joint and the in-built physics engine.

They work, the can hit the sphere around the table, however sometimes the sphere will fly off the table once struck with the paddles.

Here is what I have tried, adjusting mass of sphere, gravity on the X,Y axis (both currently set to -12), mass of the paddles. Usually changing one of these adversely effects another such as the speed of the sphere, or the power of the paddles to hit the sphere.

Any suggestions on how I can resolve this would be excellent.

Thanks.

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

Answer by AngryOldMan · Mar 22, 2011 at 11:50 AM

Could you just put a plane on top of the machine facing down so that you can still see in but the ball can't fly out.

OR

Could you freeze the position of the rigidbody on the y axis under it's inspector properties? Not sure how your tables laid out.

Comment
Add comment · Show 3 · 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 Sisyphus · Mar 22, 2011 at 12:30 PM 0
Share

Hi there thanks for the reply, I was thinking I could add a plane over the top, and chances are that I will, but the sphere still has issues, i.e doesn't roll down the table fast enough, or speed when struck by the paddle, I know the latter issue is going to be something to do with torque on the paddle. I tried to freeze position on the Y axis, but because of the table layout, no dice thanks for the suggestion.

avatar image Sisyphus · Mar 22, 2011 at 06:08 PM 0
Share

In the end, I just put a non rendered cube over the top, with rigid body, did job, thanks.

avatar image AngryOldMan · Mar 22, 2011 at 06:38 PM 0
Share

try raising the local force added by the paddles, that should give you a bit more acceleration. You can put a collider on the none rendered box ins$$anonymous$$d of a rigidbody then unity doesnt need to process the physics of the rigidbody (even though it's static) Also turn down the angular drag or tilt the table down a bit more in order to get the ball to roll down the table faster.

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

No one has followed this question yet.

Related Questions

Planetary gravity for not so round object? 1 Answer

How do I make a small planet with gravitational pull? 4 Answers

Constant force, with gravity, and correct collisions. 2 Answers

Planet gravity help need guidance no code 1 Answer

Faux Gravity Prolem? #2 2 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