This commit is contained in:
2025-11-28 17:59:11 +02:00
parent 8a28846fe8
commit ee574bd282
6 changed files with 16 additions and 14 deletions
+3 -3
View File
@@ -139,10 +139,10 @@ export default {
}
if (this.scene.data.$scene){
let env = await gameEngine.load(this.scene.data.$scene.asset.name);
this.setObjectAttributes(l, this.scene.data, env.scene, env, 100);
this.setObjectAttributes(l, this.scene.data, env.scene, env, null);
if (this.env != 'GameDesigner'){
env.scene.traverse(o=>{
if (o.name == 'Sphere'){
if (o.name.startsWith('land') || o.name == 'Sphere'){
console.log('Fixing ground. TODO!!!')
gameEngine.physics.add(o, 'fixed', true, undefined, 'mesh', { root: env.scene})
}
@@ -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(gameEngine, io, i.data.$go);
let hero = new Hero(gameEngine, io);
}else{
if (io.source?.animations?.length){
gameEngine.playAnimation(gameEngine.scene, io.source.animations[0]);