hud observation for generic game objects

This commit is contained in:
2025-11-07 12:48:36 +02:00
parent b972ab25f0
commit 48c7ea2e2a
7 changed files with 152 additions and 43 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
import { InteractiveObject } from '@/components/InteractiveObjects/InteractiveObject';
import { GameEngine } from '@/lib/GameEngine';
import { Hero } from '@/lib/Hero';
import { autoScale } from '@/lib/MeshUtils';
let gameEngine = null;
export default {
@@ -185,7 +186,7 @@ export default {
object[p].copy(l[data.id][p])
})
}else if (!data.type || data.type == 'GenericObject'){
gameEngine.autoScale(object, autoScaleFactor);
autoScale(object, autoScaleFactor);
}
l[data.id] = l[data.id] || {};
['position', 'scale', 'rotation', 'visible'].forEach(p=>{