- Home /
angular velocity only on one axis
hey guys , is there any way to find the velocity of rotation along one axis? i have an object with rigidbody. and it rotates around Y and -Y at different speed levels. how can measure its rotation speed and use it in an if statement? please help if you know
Answer by NorthStar79 · Nov 15, 2017 at 09:35 AM
like this ?
if(myRigidbody.angularVelocity.y > 10)
{
//do something
} else
{
//do something else
}
yes something like that . but how do i write a script which shows me my object's rotation speed?
for example if i set up a public vector3 in my script that shows rotation speed along X ,Y ,Z in the inspector. i need to see in what speed it rotates. is that possible?
Your answer
Follow this Question
Related Questions
why won't my script do a proper rotation check 1 Answer
Trouble w/ Mouse Drag rotation, smooth release 0 Answers
How to position and rotate an object based on which way the camera is facing 0 Answers
Update rotation from touch and drag 1 Answer
Know if an object has been rotating 180 or 360 degrees? 0 Answers