Search Unity

Rotation

Discussion in 'Getting Started' started by Scott_Young, Jan 28, 2015.

  1. Scott_Young

    Scott_Young

    Joined:
    Jan 28, 2015
    Posts:
    3
    Hey all. first post

    I need to have my character rotated 90 on the y axis. once I have done that is where a way for me to set this 90 as the new zero like you can apply rotation in Blender and it sets the current amounts as the new zeros??
     
  2. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,822
    Why would you want to do that?
     
  3. Scott_Young

    Scott_Young

    Joined:
    Jan 28, 2015
    Posts:
    3
    currently the asset that I bought faces front to back on the z axis, I need it facing on the y axis.
    if I do it just by setting it to 90y, then when I move it with vector2.y it moves globally on the z because its relative y axis is rotated 90.
     
  4. Scott_Young

    Scott_Young

    Joined:
    Jan 28, 2015
    Posts:
    3
    sorry I made a little mistake above.
    I need it rotated on y 90 so that x stays the same relative to the world. I said y
    I am using vector2 to move on x axis but my asset is facing 90 the wrong way.

    I know I could use vector3.z to move instead but I would rather not use the z axis when I really don't need it
     
  5. imaginaryhuman

    imaginaryhuman

    Joined:
    Mar 21, 2010
    Posts:
    5,834
    Make your object be the child gameobject of another gameobject, then although you rotate it around the y axis itself, this is RELATIVE TO the parent, and then the parent's rotation will be 0.