Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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
0
Question by Shindy117 · Sep 01, 2016 at 05:46 AM · animationrotationanimatordoor

Rotation Y axis is bugged.

I am having a problem with how to move my door.

As you can see by my door's odd position whenever I set my rotation of my door, in this case to open Unity makes the door move or spin in the wrong direction.

Another issue is the Rotation at the Y axis. Whenever I set it to -90 it changes it to 270 all of a sudden when I play. The Door HAS to open like a regular door but it keep making loops around as you can see in the photo.

So guys any solutions for this? I am all ears thanks in advance for any help! :)

Shindy alt text

2016-08-01.png (168.2 kB)
Comment
Add comment · Show 4
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 jinincarnate · Sep 01, 2016 at 07:33 AM 0
Share

It would be easier to solve your problem, if you could share the code snippet that you are using to rotate your door.

avatar image Shindy117 jinincarnate · Sep 02, 2016 at 09:17 PM 0
Share

I am using the Animation tool to rotate it not a script. As you can see on the right hand side my doors Y coordinates change from -90 to 270 for some strange reason.

avatar image Hanoble Shindy117 · Sep 02, 2016 at 09:37 PM 0
Share

270 and -90 are the same, are they not? If you set an object to -90 rotation or 270, they will be the same rotation.

Show more comments

2 Replies

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

Answer by ScaniX · Sep 02, 2016 at 11:56 PM

Just tested this, and you are right: Unity auto "corrects" the value to 270 if entered in the inspector.

What works is a value entered in the animation view. Either expand the Rotation element of the transform in the Dopesheet and enter the value there or switch to Curves, select the corresponding point of the animation curve (which is probably just a line in your case), right click and select "Edit keys...". If you enter the value of -90 this way, Unity will keep it like that.

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 Shindy117 · Sep 05, 2016 at 07:43 PM 0
Share

I ended up redoing my animation key frames till the door moved in the right direction. Haha it was driving me nuts.

avatar image Shindy117 · Sep 05, 2016 at 07:49 PM 0
Share

Thank you sir

avatar image
1

Answer by cezikmertcan · Sep 02, 2016 at 11:42 PM

Okay lets calculate what you have done so far

-90 to 270 is actually a 360

(-90)-(270)=-360 which is 360 at the same time.

You are getting loop because actually you made a perfect loop.

Here is how you can solve it

Normally an opening door goes minimum 90 maximum 180 degrees. So if its original y rotation is -90 you should make the stop rotation like these

-90 --> 0 is 90

-90 --> 90 is 180

So you could go for 0 or 90 for the last rotation key.

Comment
Add comment · Show 1 · 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 Shindy117 · Sep 05, 2016 at 07:42 PM 0
Share

Yeah thanks I ended up re-doing my animations and FINALLY unity caught on. The door is suppose to open at -90 degrees cause when it does it opens like a regular door. I had to keep redoing my animations and look at it frame by frame till I fixed it. One guy in the comment section said he tested it and he noticed this too.

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

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Only animate rotation not position 1 Answer

Run smooth continuous rotation animation of spinner using animator 1 Answer

Animating sliding door, rotation problem 2 Answers

Door Movement Animation 3 Answers

Mirrored animation doesnt rotate correctly 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