Matrix Engine Api Documentation - v2.0.0
    Preparing search index...

    Function animateRotationY

    • Smoothly rotates the object from current rotation to a target Y rotation

      Parameters

      • targetObject: any

        The object with the setRotationY method

      • targetAngle: number

        The final angle in degrees

      • duration: number = 1000

        Total time for the animation in milliseconds

      Returns void