fix skill
This commit is contained in:
@@ -73,6 +73,14 @@ export default function VrmCharacter({ selectedAnimation: animState, vrmModel =
|
||||
const vrm = gltf.userData.vrm;
|
||||
vrmRef.current = vrm;
|
||||
VRMUtils.removeUnnecessaryJoints(vrm.scene);
|
||||
// SpringBone: centerをRotatingStage(親group)に設定し、回転に追従させる
|
||||
const sbm = vrm.springBoneManager;
|
||||
if (sbm) {
|
||||
const stageGroup = vrm.scene.parent;
|
||||
sbm.joints?.forEach(joint => {
|
||||
if (stageGroup) joint.center = stageGroup;
|
||||
});
|
||||
}
|
||||
vrm.humanoid.resetPose();
|
||||
vrm.scene.rotation.y = Math.PI;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user