Source Academy Modules
    Preparing search index...

    Function update_rotation

    • Updates the rotation transform of the GameObject.

      Parameters

      • gameObject: GameObject

        GameObject reference

      • radians: number

        The value in radians to rotate the GameObject clockwise by

      Returns GameObject

      the GameObject reference passed in

      update_rotation(create_text('Hello world!'), math_PI);