- Home /
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)
Do the walls and the ball have the right physics material?
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 :)
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 :)
Your answer
Follow this Question
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