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! :slight_smile:

Shindy

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.

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.