Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

global rotation does not work

Discussion in 'Scripting' started by kpatzke_unity, Feb 22, 2018.

  1. kpatzke_unity

    kpatzke_unity

    Joined:
    Feb 22, 2018
    Posts:
    3
    upload_2018-2-22_14-6-19.png

    Hey Folks,
    as you can see, I'm trying to get the global rotation of my gameobject in the Start(). But it always returns local rotation as I can see in the Debug.Log(). Any Idea why?
     
  2. LeftyRighty

    LeftyRighty

    Joined:
    Nov 2, 2012
    Posts:
    5,148
    is it the child of something?
     
  3. kpatzke_unity

    kpatzke_unity

    Joined:
    Feb 22, 2018
    Posts:
    3
    It is a child of something, yes.
     
  4. kpatzke_unity

    kpatzke_unity

    Joined:
    Feb 22, 2018
    Posts:
    3