Question by
CowboyOutfit · May 27, 2018 at 05:31 PM ·
angularvelocity
How to display angularVelocity in HUD properly?
Hi, I would like to see in my HUD the angular velocity of the object. I use this function:
void FixedUpdate(){
displayAngularVelocity();
}
void displayAngularVelocity(){
string angvel = shipr2d.angularVelocity.ToString ();
Debug.Log (angvel);
AngVelText.text = "Angular Velocity: " + angvel;
}
Now, Debug.Log (angvel) outputs correctly, displaying the current angular velocity, but the text field I am trying to use only shows the value for a split second very now and then. Can someone help please?
Comment
Your answer
Follow this Question
Related Questions
step 10 space shooter asteroid random rotation not working 4 Answers
How to set rigidbody velocity and angularVelocity to Vector3.zero over time? 1 Answer
i wanna set max velocity, max angular velocity to joint 0 Answers
Rotating around a fixed point at a fixed distance? 0 Answers
Confused about addForce behavior on 3D objects w/ sub-objects in 2D movement 0 Answers