This commit is contained in:
syuilo
2026-02-16 21:04:32 +09:00
parent 06adb3e045
commit 6a4a09c8cf
2 changed files with 4 additions and 1 deletions

View File

@@ -310,6 +310,9 @@ onUnmounted(() => {
window.removeEventListener('resize', resize);
});
// todo: 掴む/離す(or 設置)のボタン出し分け
// grabbing中かどうか、家具設置中かどうかをengineからリアクティブにもらう必要あり
function grab() {
engine.value.beginSelectedInstalledObjectGrabbing();
canvas.value!.focus();

View File

@@ -23,7 +23,7 @@ import { GridMaterial } from '@babylonjs/materials';
import { ShowInspector } from '@babylonjs/inspector';
import { ref, watch } from 'vue';
import { genId } from '../id.js';
import { getObjectDef, OBJECT_DEFS } from './object-defs.js';
import { getObjectDef } from './object-defs.js';
import { HorizontalCameraKeyboardMoveInput } from './utility.js';
import * as sound from '@/utility/sound.js';