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

    Class VRMFirstPerson

    Index

    Constructors

    Properties

    humanoid: VRMHumanoid

    Its associated VRMHumanoid.

    meshAnnotations: VRMFirstPersonMeshAnnotation[]
    DEFAULT_FIRSTPERSON_ONLY_LAYER: 9

    A default camera layer for FirstPersonOnly layer.

    [[getFirstPersonOnlyLayer]]

    DEFAULT_THIRDPERSON_ONLY_LAYER: 10

    A default camera layer for ThirdPersonOnly layer.

    [[getThirdPersonOnlyLayer]]

    Accessors

    Methods

    • In this method, it assigns layers for every meshes based on mesh annotations. You must call this method first before you use the layer feature.

      This is an equivalent of VRMFirstPerson.Setup of the UniVRM.

      The cameraLayer parameter specifies which layer will be assigned for FirstPersonOnly / ThirdPersonOnly. In UniVRM, we specified those by naming each desired layer as FIRSTPERSON_ONLY_LAYER / THIRDPERSON_ONLY_LAYER but we are going to specify these layers at here since we are unable to name layers in Three.js.

      Parameters

      • cameraLayer: { firstPersonOnlyLayer?: number; thirdPersonOnlyLayer?: number } = {}

        Specify which layer will be for FirstPersonOnly / ThirdPersonOnly.

      Returns void