- Home /
Question by
Xitech_ · Apr 03, 2014 at 11:25 AM ·
rigidbodyballrelative rotation
Stop a ball(GameObject) from rotating(bowling game)
Hi,
I am making a little bowling game. When I reset the bowlingball's position. The ball still rotates. I know I can use rigidbody.velocity = Vector3.zero;
to make it stop moving. So I guess there should be a stop rotating one aswell.
Cheers
Comment
Best Answer
Answer by brycedaawg · Apr 03, 2014 at 11:49 AM
Use:
rigidbody.angularVelocity = new Vector3(0.0f, 0.0f, 0.0f);
to set a rigidbody's rotational velocity to zero.
Answer by einWikinger · Apr 03, 2014 at 12:05 PM
Yes, there is. It's called angularVelocity
:
rigidbody.angularVelocity = Vector3.zero;
Answer by fani_2025 · Dec 04, 2017 at 04:36 PM
It is very much necessary to stop rotating the bowling ball. go bowling alley