• 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