Hi
I copied the code from the rolling ball template for use in another project, And I am a bit stuck wondering how to stop the ball from rolling when the player stops pushing a thumbstick axis.
As the ball is simulating and using Torque in radians is there a way to make it have enough physics resistance that it stops without input?
Plus also how to make the input scale as its just going full speed straight away and I would like it to go faster as I push the stick more/ slower if im just pushing it gently.
Thanks
I think you can just increase the friction, no?
I have a physics material on it with friction set to 1.
But this is a new domain for me, I can try setting it higher and see what happens
I just tried it with the ball project. Change angular damping to 25 and RollTorque to 100000000.0
( 200000000.0 is better )
Nice call ! Setting angular dampening in the properties of the ball TO 25, Gave me exactly what I wanted
2 Likes