Create a new VRMHumanoid.
A VRMHumanBones contains all the bones of the new humanoid
Optional
options: { autoUpdateHumanBones?: boolean }Whether it copies pose from normalizedHumanBones to rawHumanBones on update.
true
by default.
A map from VRMHumanBoneName to raw VRMHumanBones.
A map from VRMHumanBoneName to normalized VRMHumanBones.
The root of normalized VRMHumanBones.
A VRMPose of its normalized human bones that is its default state. Note that it's not compatible with setNormalizedPose and getNormalizedPose, since it contains non-relative values of each local transforms.
A map from VRMHumanBoneName to raw VRMHumanBones.
A VRMPose of its raw human bones that is its default state. Note that it's not compatible with setRawPose and getRawPose, since it contains non-relative values of each local transforms.
Deprecated. Use either rawRestPose or normalizedRestPose instead.
Copy the given VRMHumanoid into this one.
The VRMHumanoid you want to copy
this
Deprecated. Use either getRawAbsolutePose or getNormalizedAbsolutePose instead.
Deprecated. Use either getRawBone or getNormalizedBone instead.
Deprecated. Use either getRawBoneNode or getNormalizedBoneNode instead.
Return the current absolute pose of this normalized human bones as a VRMPose. Note that the output result will contain initial state of the VRM and not compatible between different models. You might want to use getNormalizedPose instead.
Return a normalized VRMHumanBone bound to a specified VRMHumanBoneName.
Name of the bone you want
Return a normalized bone as a THREE.Object3D
bound to a specified VRMHumanBoneName.
Name of the bone you want
Deprecated. Use either getRawPose or getNormalizedPose instead.
Return the current absolute pose of this raw human bones as a VRMPose. Note that the output result will contain initial state of the VRM and not compatible between different models. You might want to use getRawPose instead.
Return a raw VRMHumanBone bound to a specified VRMHumanBoneName.
Name of the bone you want
Return a raw bone as a THREE.Object3D
bound to a specified VRMHumanBoneName.
Name of the bone you want
Reset the normalized humanoid to its rest pose.
Deprecated. Use either resetRawPose or resetNormalizedPose instead.
Reset the raw humanoid to its rest pose.
If you are using autoUpdateHumanBones, you might want to use resetNormalizedPose instead.
Let the normalized human bones do a specified pose.
Each transform have to be a local transform relative from rest pose (T-pose). You can pass what you got from getNormalizedPose.
Deprecated. Use either setRawPose or setNormalizedPose instead.
Let the raw human bones do a specified pose.
Each transform have to be a local transform relative from rest pose (T-pose). You can pass what you got from getRawPose.
If you are using autoUpdateHumanBones, you might want to use setNormalizedPose instead.
Update the humanoid component.
If autoUpdateHumanBones is true
, it transfers the pose of normalized human bones to raw human bones.
A class represents a humanoid of a VRM.