Update woodRingsPendantLight.ts

This commit is contained in:
syuilo 2026-04-21 11:24:43 +09:00
commit b300f9620c

View file

@ -107,7 +107,7 @@ export const woodRingsPendantLight = defineObject({
const codeMesh = model.findMesh('__X_CODE__');
const applyLength = () => {
mainNode.position.y = -remap(options.length, 0, 1, 0, 200) / WORLD_SCALE;
mainNode.position.y = -remap(options.length, 0, 1, 0, cm(200)) / WORLD_SCALE;
codeMesh.morphTargetManager!.getTargetByName('Length')!.influence = options.length;
model.updated();
};