This class is used by VRMLookAt, applies look at direction. There are currently two variant of applier: VRMLookAtBoneApplier and VRMLookAtExpressionApplier.

interface VRMLookAtApplier {
    applyYawPitch: (yaw: number, pitch: number) => void;
    lookAt: (euler: Euler) => void;
}

Implemented by

Properties

applyYawPitch: (yaw: number, pitch: number) => void

Apply look at direction to its associated VRM model.

Type declaration

    • (yaw: number, pitch: number): void
    • Parameters

      • yaw: number

        Rotation around Y axis, in degree

      • pitch: number

        Rotation around X axis, in degree

      Returns void

lookAt: (euler: Euler) => void

Use applyYawPitch instead.