1
0

fix skill

This commit is contained in:
2026-03-07 16:57:46 +09:00
parent 309d93af04
commit 2bc35563a2
3 changed files with 50 additions and 6 deletions

View File

@@ -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;