Class VRMFirstPerson

Constructors

Properties

_createErasedMesh: any
_createHeadlessModel: any
_createHeadlessModelForSkinnedMesh: any
_excludeTriangles: any
_firstPersonOnlyLayer: any
_initializedLayers: any
_isEraseTarget: any
_thirdPersonOnlyLayer: any
humanoid: VRMHumanoid

Its associated VRMHumanoid.

meshAnnotations: VRMFirstPersonMeshAnnotation[]
DEFAULT_FIRSTPERSON_ONLY_LAYER: 9 = 9

A default camera layer for FirstPersonOnly layer.

See

[[getFirstPersonOnlyLayer]]

DEFAULT_THIRDPERSON_ONLY_LAYER: 10 = 10

A default camera layer for ThirdPersonOnly layer.

See

[[getThirdPersonOnlyLayer]]

Accessors

Methods

  • Copy the given VRMFirstPerson into this one. humanoid must be same as the source one.

    Parameters

    Returns this

    this

  • 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

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

      Specify which layer will be for FirstPersonOnly / ThirdPersonOnly.

      • Optional firstPersonOnlyLayer?: number
      • Optional thirdPersonOnlyLayer?: number

    Returns void