hud observation for generic game objects
This commit is contained in:
@@ -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=>{
|
||||
|
||||
Reference in New Issue
Block a user