Source Academy Modules
    Preparing search index...

    Function set_rotation

    • Set the rotation of the object. Mutate the object.

      Parameters

      • obj: GameObject

        object to be set

      • rad: number

        the rotation, in radians

      Returns GameObject | undefined

      game object itself