Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

transform.rotate - function of parent eulerangle

Discussion in 'Scripting' started by ml1985, Nov 22, 2014.

  1. ml1985

    ml1985

    Joined:
    Dec 29, 2013
    Posts:
    22
    Hi there

    I have a parent object rotating around the z-axis and a child object rotating around the z axis again but its rate of rotation is a function of the parent euler angle z which changes over time.

    Is it possible to use transform.rotate for this purpose.

    Any help would be great.