Hi Everyone, I was a little confused about the orientation of axes in the scene view. The default orientation has +ive x-axis on the left of origin and it is not a horizontal line as it is tilted at an angle. Please see the attached figure. I am used to having x-axis represented by an absolute horizontal line and +ive x-axis on the right side of the origin. Similarly, i prefer z-axis to be perfectly perpendicular to the computer screen and in such an orientation, the z-axis is -ive while coming out of the screen and +ive while going into the screen. I tried to keep z-axis +ive while coming out of the screen but it disturbs the orientation of x and y axes and i donāt want to change their orientation.
1 - Is there any orientation that should be preferred or avoided?
2 - Is it fine to have -ive z-axis outwards as i had read somewhere(Unity Answers perhapsā¦donāt remember exactly) that z-axis should be +ive outwards and -ive inwards. Is it true? I was worried as my preferred orientation has -ive z-axis outwards.
And on a side noteā¦i change the axes orientation in scene view by right clicking mouse button and then moving the mouse accordingly. Is this approach fine?
Iām not sure what āiveā is (the Y axis, maybe?) but to back up a secondā¦
You understand that the Scene View is a 2D projection representing 3D space, yes? So as you rotate your view (and yes, right-clicking and panning is how you do that), the axis indicator changes to show the current orientation of the projection. This doesnāt change anything in the game⦠itās just to show you what direction youāre looking at the projection from.
If you just want to look at two axes like the right side of your diagram, toggle on 2D mode. You can also click any of the cones on the axes gizmo to snap your view to align with that axis, and click the cube in the middle of it to toggle perspective/orthographic view.
+ive is short for positive
-ive is short for negative
So, +ive x-axis means x=1,2,3,ā¦
-ive x-axis means x=-1,-2,-3ā¦
And similarly we have positive and negative y-axis and z-axis too. Maybe i should have written the words āpositiveā and ānegativeā to avoid this confusion.
Anyways, back to topic. Yes, i understand that scene view is represented as a 3D space on a computer screen and screen is ofcourse 2D, so, yeah i get that.
I wanted to know that does this orientation affect the game in anyway or does it affect the camera-view from the playerās perspective. Can i or should i use whatever axes orientation i prefer or is any orientation that should be preferred?
Is it fine to have negative z-axis outwards(coming out of screen) and positive z-axis inwards?
I donāt want you to take offense at this⦠You seem like an intelligent person. But you also donāt seem to understand what the Scene View is. You should go through the Interface tutorials to learn more about the editor and how to use it.
In short, the Scene View has almost nothing to do with what the player sees. Itās a tool to help you place and edit objects.
Orientation does not affect the game - provided that there is no code which relies on specific axi. In 3d, there is not (aside from default adjustable gravity). In 2d (with built in tools), there is.
2D in Unity should probably be done with the preset 2D plane. Everything is already handled for you there and physics2d will operate in the correct axi. If you are not using built in 2D systems then you can do whatever you want since the scene is a 3D space, you have complete freedrom in that case and Unity isnāt going to stop you or give you any grief.
You said that as long as there is no code which relies on specific axis,everything is fine in 3d. Suppose we are controlling the camera through scriptā¦like rotating the camera along x or z axis with the help of mouse, so here we have a code that is dependent on axes. So ,orientation does matter here or not? I donāt know if i am interpreting the point taken up by you correctly or not but i hope that you got my point.