mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-05 09:24:10 +02:00
wip
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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[];
|
||||||
|
|||||||
Reference in New Issue
Block a user