From 72456a96f3683657c329202051d09f8c0d20bb1e Mon Sep 17 00:00:00 2001 From: syui Date: Fri, 4 Oct 2024 13:37:23 +0900 Subject: [PATCH] fix --- holo/src/pages/vrm.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/holo/src/pages/vrm.tsx b/holo/src/pages/vrm.tsx index 8e4f75d..caadbc0 100644 --- a/holo/src/pages/vrm.tsx +++ b/holo/src/pages/vrm.tsx @@ -36,6 +36,12 @@ const VRMModel: React.FC = ({ url, url_anim, position, rotation, sca mixer.clipAction(clip).play(); } }); + if (mixerRef.current) { + const hips = vrmModel.humanoid?.getBoneNode('hips'); + if (hips) { + hips.rotation.y = Math.PI; + } + } }); }, [url, url_anim]); @@ -65,10 +71,10 @@ export const VRMModelCanvas = () => { }} camera={{ position: [1.2, 0, 0] }}> {/* Light gray background */} - + - + )