This commit is contained in:
2025-11-24 08:27:04 +02:00
parent c67ffd774b
commit 3678ad0cfb
5 changed files with 28 additions and 22 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import { InteractiveObject } from '@/components/InteractiveObjects/InteractiveOb
import { VideoPlayer } from '@/components/InteractiveObjects/VideoPlayer';
import { GameEngine } from '@/lib/GameEngine';
import { Hero } from '@/lib/Hero';
import { autoScale, getBoundingBox, getBoundingBoxCenterPoint, getBoundingBoxSize } from '@/lib/MeshUtils';
import { autoScale, getBoundingBox, getBoundingBoxSize } from '@/lib/MeshUtils';
import Utils from '@/lib/Utils';
let gameEngine = null;
@@ -168,7 +168,7 @@ export default {
gameEngine.activeObjects.add(io.object);
if (this.env != 'GameDesigner'){
if (i.data.$go?.type == 'player3d'){
let hero = new Hero(io.source, i.data.$go);
let hero = new Hero(io, i.data.$go);
hero.init(gameEngine);
}else{
if (io.source?.animations?.length){