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 Riskki · Aug 09, 2014 at 08:34 PM · ballwallrollingbouncinggolf

Stop ball rolling off wall but bouncing off

ok so basically i am doing a golf like game and the ball rolls when i add force to it, the problem is that as the ball slows down and bounces of a wall it tends to roll of the wall in the wrong direction rather than bouncing of slowly in the right direction. I've tried adding frictionless material to just the wall but doesn't work also tried messing around with angular velocity and angular drag, it seems i need all 3 things to get the ball to roll correctly but can't get the correct bounce.

note.. when i first take a shot and the ball has a lot of power it does seem to bounce correctly.

thanks for an help

so basically because of the roll it doesn't bounce of the wall at the correct angle that it should! (if rotation is off it works fine, but i want the ball to roll)

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 screenname_taken · Aug 09, 2014 at 10:27 PM 0
Share

Do the walls and the ball have the right physics material?

avatar image Riskki · Aug 09, 2014 at 10:59 PM 0
Share

yeah i have friction off on the walls completely but bounciness on a little. the ball has friction on to start the spinning and bounciness also on a little.

i think the problem is that when the ball is rolling because of the friction between the floor and ball it just rolls where it wants.... i want it to just roll on the spot really but can't think how? any ideas :)

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Riskki · Aug 10, 2014 at 02:47 AM

I Found out the answer for anyone thats also having this problem! what i did was change all of the physics materials 'dynamic friction' and 'static friction' to '0' and set friction combine to 'minimum'!! this stops the ball rolling altogether then to get the affect of the ball rolling without going up walls and rolling in the wrong direction is to use gameobject.rigidbody.addtorque(Direction); this gives the spin affect on the ball :)

Comment
Add comment · 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

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

How can i make a 3rd person ball game 0 Answers

Key elements in how to make a 3d golf game 0 Answers

2D Golf ball physics, force from right side doesn't work 0 Answers

moving and jumping ball using physics 2 Answers

Rolling ball camera? 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