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 /
avatar image
-1
Question by UniteMage · May 25, 2011 at 06:43 AM · rotate rotation

Rotations?

On the subject of rotation of GameObjects, I noticed three overloaded function transform.Rotate() with the option to rotate on itself in local coordinates or in the world coordinates.

(1) function Rotate (eulerAngles : Vector3, relativeTo : Space = Space.Self) : void

(2) function Rotate (xAngle : float, yAngle : float, zAngle : float, relativeTo : Space = Space.Self) : void

(3) function Rotate (axis : Vector3, angle : float, relativeTo : Space = Space.Self) : void

To rotate the GameObjects incrementally, this is what I should use. I noticed the other types of rotations are not well documented for example the quaternions.

Thanks CSDG

Comment
Add comment · Show 2
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 CHPedersen · May 25, 2011 at 06:49 AM 0
Share

I'm not sure if you're asking something, or stating something. :)

avatar image Meltdown · May 25, 2011 at 07:01 AM 0
Share

Agree, your question doesn't make much sense

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Graham-Dunnett · May 25, 2011 at 09:31 AM

Those 3 functions all look pretty well documented to me. The choice of which one you use depends greatly on how you think about the rotation you are applying. Possibly your number 3 version (rotation about an axis) is the simplest to understand.

Quaternions are not very intuitive to non-mathematicians. What part of the documentation do you think needs improving?

If you want to incrementally rotate a GameObject frame-by-frame, simply use any of the rotation functions applying small rotations. These will accumulate over time. As I said before, this is most easy to understand with the third kind of rotation.

Comment
Add comment · Show 2 · 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
avatar image UniteMage · May 25, 2011 at 05:24 PM 0
Share

Please don't take for granted that I know what you know.

I am not that familiar with the manipulation functions on GameObjects. I am new to unity. I assume any function under the class Transform actually operates on the GameObjects translate, rotation and scale in World Space with this option set. The question was suppose to be is this the main rotation tools I can use to incrementally rotate my game objects!?

Do the Quaternions operate on the transform class or do the operate in the affine matrix only?

Thanks CSDG

avatar image flaviusxvii · May 25, 2011 at 05:28 PM 0
Share

This the same Jesse 2 that was telling me all about Transform vectors and stuff yesterday? Greaaaat.

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

2 People are following this question.

avatar image avatar image

Related Questions

Rotate turret faster if hull is rotating the same way 2 Answers

Character wont turn on keypress 1 Answer

How can you give a NavMeshAgent a rotation offset? 0 Answers

How can i smoothly rotate a gameobject 1 Answer

Object Rotate and move towards coordinates 1 Answer


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