1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-06 00:34:09 +02:00
This commit is contained in:
syuilo
2026-02-11 15:55:47 +09:00
parent 24a7131b0b
commit 91e3249b23
5 changed files with 8 additions and 0 deletions

View File

@@ -33,6 +33,11 @@ onMounted(() => {
position: [120, 0, 50], position: [120, 0, 50],
rotation: [0, 0.2, 0], rotation: [0, 0.2, 0],
variation: 'mikan', variation: 'mikan',
}, {
id: 'a2',
type: 'opened-cardboard-box',
position: [115, 0, -20],
rotation: [0, -0.1, 0],
}, { }, {
id: 'b', id: 'b',
type: 'cardboard-box', type: 'cardboard-box',

View File

@@ -186,6 +186,9 @@ const OBJECTS = {
'tv': { 'tv': {
placement: 'top', placement: 'top',
}, },
'opened-cardboard-box': {
placement: 'top',
},
} as Record<string, ObjectDef>; } as Record<string, ObjectDef>;
function vecToLocal(vector: BABYLON.Vector3, mesh: BABYLON.Mesh): BABYLON.Vector3 { function vecToLocal(vector: BABYLON.Vector3, mesh: BABYLON.Mesh): BABYLON.Vector3 {