- Home /
Rigidbody Sphere slides around when rotating.
Okay I am trying to control a ball using Rigidbody.AddTorque
, but I am having issues with the ball sliding around. When I change direction, or start moving from a stop the ball first skids in place before beginning to move in the correct direction. There is a Physics Material on the terrain with all friction values maxed to 1, and the friction combine set to maximum.
So, solutions? As I understand it the issue comes from there being such a small amount of contact between the ball and the terrain, but I don't know how to make it work. I want the ball to be fully physics driven, and to not skid at all when changing directions normally.
Thanks...
EDIT: A good visualization is that currently the ball moves as you would expect it to on an Ice friction...
$$anonymous$$oving a sphere around like a marble using AddForce always worked like a charm for me, so consider giving that a go. There is also a free demo-marble game in the asset store (I think it's called 5 c# game examples) so you could use that for reference.
I definitely want to use rotation to move, rather than using movement to cause rotation. I did try switching out to AddForce, and didn't like it at all. I will check out that example, though I am using JS, maybe I can glean something from it.
EDIT: Yeah, that example just uses AddForce, giving it that same ickky feeling physics I experienced when I tried it.
Your answer
Follow this Question
Related Questions
How can I slide a cube perfectly over a changing surface? 2 Answers
slide sphere on a slope without rotating 1 Answer
Collision between player and a ball 1 Answer
Rigidbodies not reacting to one another 2 Answers
A sphere with a rigidbody isn't affected by capsule collider if it lands on a plane first. 0 Answers