@pixiv/three-vrm
    Preparing search index...

    A class controls eye gaze movements of a VRM.

    Index

    Constructors

    Properties

    _needsUpdate: boolean

    Specifies that angles need to be applied to its [@link applier].

    _pitch: number

    Its current angle around X axis, in degree.

    _yaw: number

    Its current angle around Y axis, in degree.

    The VRMLookAtApplier of the LookAt.

    autoUpdate: boolean = true

    If this is true, the LookAt will be updated automatically by calling update, towarding the direction to the target. true by default.

    See also: target

    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.

    offsetFromHeadBone: Vector3 = ...

    The origin of LookAt. Position offset from the head bone.

    target?: null | Object3D<Object3DEventMap>

    The target object of the LookAt. Note that it does not make any sense if autoUpdate is disabled.

    See also: autoUpdate

    EULER_ORDER: "YXZ" = 'YXZ'

    Accessors

    Methods

    • Set its lookAt target position.

      Note that its result will be instantly overwritten if VRMLookAtHead.autoUpdate is enabled.

      If you want to track an object continuously, you might want to use target instead.

      Parameters

      • position: Vector3

        A target position, in world space

      Returns void