Question by
RoughIdeas · Jun 18, 2017 at 11:23 AM ·
angularvelocity
Angular Velocity affecting position
Hi guys,
I'm new to this and am currently running through the Space Shooter tut. When I add angular velocity to my asteroid it affects the position as well as the rotation and flies off the screen. Any suggestions is appreciated. Below is my code but i think it is something in the interface I have not done. Thanks in advance.
public class RandomRotator : MonoBehaviour { public float tumble; public Rigidbody rb;
void Start(){
rb = GetComponent <Rigidbody> ();
rb.angularVelocity = Random.insideUnitSphere * tumble;
}
}
Comment
Your answer

Follow this Question
Related Questions
How do I measure the velocity of object in Z-direction? 0 Answers
How to check the value of angular velocity? 2 Answers
Ball slows down too fast.. why? 1 Answer
Angular Velocity to zero 0 Answers