1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-05 12:54:09 +02:00
This commit is contained in:
syuilo
2026-04-19 16:46:55 +09:00
parent 8b9164a8c3
commit c0690c9b80
3 changed files with 2 additions and 1 deletions

View File

@@ -42,13 +42,14 @@ export const blind = defineObject({
}, },
placement: 'bottom', placement: 'bottom',
hasCollisions: false, hasCollisions: false,
hasTexture: false,
createInstance: ({ options, model }) => { createInstance: ({ options, model }) => {
const temp = createOverridedStates({ const temp = createOverridedStates({
angle: () => options.angle, angle: () => options.angle,
open: () => options.open, open: () => options.open,
}); });
const blade = model.findMesh('Blade'); const blade = model.findMesh('__X_BLADE__');
blade.rotation = new BABYLON.Vector3(options.angle, 0, 0); blade.rotation = new BABYLON.Vector3(options.angle, 0, 0);
let blades = [] as BABYLON.InstancedMesh[]; let blades = [] as BABYLON.InstancedMesh[];