A class that applies eye gaze directions to a VRM. It will be used by VRMLookAt.

Implements

Constructors

Properties

faceFront: Vector3

The front direction of the face. Intended to be used for VRM 0.0 compat (VRM 0.0 models are facing Z- instead of Z+). You usually don't want to touch this.

humanoid: VRMHumanoid

Its associated VRMHumanoid.

rangeMapHorizontalInner: VRMLookAtRangeMap

A VRMLookAtRangeMap for horizontal inward movement. The left eye moves right. The right eye moves left.

rangeMapHorizontalOuter: VRMLookAtRangeMap

A VRMLookAtRangeMap for horizontal outward movement. The left eye moves left. The right eye moves right.

rangeMapVerticalDown: VRMLookAtRangeMap

A VRMLookAtRangeMap for vertical downward movement. Both eyes move upwards.

rangeMapVerticalUp: VRMLookAtRangeMap

A VRMLookAtRangeMap for vertical upward movement. Both eyes move downwards.

type: "bone"

Represent its type of applier.

Methods

  • Apply the input angle to its associated VRM model.

    Parameters

    • yaw: number

      Rotation around Y axis, in degree

    • pitch: number

      Rotation around X axis, in degree

    Returns void

  • Parameters

    • euler: Euler

    Returns void

    Use applyYawPitch instead.