Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by OfficialDingbat · Mar 28, 2017 at 01:23 PM · physicsrigidbodyboxcolliderrotationsangularvelocity

Angular Velocity not correctly rotating objects

I can't seem to get angular velocity to work properly. I've tried creating a separate project and creating an extremely simple simulation to test it. I have a single game object with a Rigidbody and a box collider. The Rigidbody has no gravity and is suspended in the air. The angular drag is also set to 0, but i have tried other values.

There is a simple script attached to the object that at the start of the game set's its angular velocity to (1, 0, 0) and after 1 second sets the angular velocity back to (0, 0, 0).

After the second is over the object always ends up with a rotation of (58.442, 0, 0). The unity documentation says "The angular velocity vector of the rigidbody measured in radians per second" so I would image that after a single second with an angular velocity of (1, 0, 0) the rotation would be exactly (180, 0, 0) but it is always (58.442, 0, 0). Is there some other variable I should take into account here? I'm creating a VR game with some very sensitive physics and if they are barely off it is extremely noticeable by the player. can someone help? :C

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image meat5000 ♦ · Mar 28, 2017 at 11:14 AM 1
Share

1.02 rads is 58.442 degrees

I'd start there.

avatar image hexagonius · Mar 28, 2017 at 05:02 PM 1
Share

you basically answered your own question. angularVelocity is in radians and you expect 100° after a second. use $$anonymous$$athf.Rad2Deg and vice versa to multiply and switch between the values.

avatar image OfficialDingbat hexagonius · Mar 28, 2017 at 10:34 PM 0
Share

Thanks, guys you're completely right I completely forgot that a radian equals 57.2958 degrees and that you have to multiply that by pi to get 180 degrees.

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by OfficialDingbat · Mar 28, 2017 at 10:37 PM

My problem was simple. I was mistaken in thinking 1 radian = 180 degrees, when actually 1π radians = 180 degrees. So all I have to do is multiply my velocity by pi to make it rotate the object 180 degrees per second.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

i wanna set max velocity, max angular velocity to joint 0 Answers

Ball slows down too fast.. why? 1 Answer

Control accurate velocity and angular velocity 0 Answers

Adding Gravity to a game object to make a black hole sucking effect. 1 Answer

Move and rotate rigid body using 6DOF marker location from file 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges