MikaFil commited on
Commit
109ec8e
·
verified ·
1 Parent(s): 07b9bfa

Update viewer.js

Browse files
Files changed (1) hide show
  1. viewer.js +1 -1
viewer.js CHANGED
@@ -184,7 +184,7 @@ export async function initializeViewer(config, instanceId) {
184
  modelEntity = new pc.Entity('model');
185
  modelEntity.addComponent('gsplat', { asset: assets.sogs });
186
  modelEntity.setLocalPosition(modelX, modelY, modelZ);
187
- modelEntity.setLocalEulerAngles(modelRotationX, modelRotationY, modelRotationZ);
188
  modelEntity.setLocalScale(modelScale, modelScale, modelScale);
189
  app.root.addChild(modelEntity);
190
 
 
184
  modelEntity = new pc.Entity('model');
185
  modelEntity.addComponent('gsplat', { asset: assets.sogs });
186
  modelEntity.setLocalPosition(modelX, modelY, modelZ);
187
+ modelEntity.setLocalRotation(modelRotationX, modelRotationY, modelRotationZ);
188
  modelEntity.setLocalScale(modelScale, modelScale, modelScale);
189
  app.root.addChild(modelEntity);
190