MikaFil commited on
Commit
fdabf2a
·
verified ·
1 Parent(s): 1ce79cd

Update viewer.js

Browse files
Files changed (1) hide show
  1. viewer.js +2 -4
viewer.js CHANGED
@@ -181,13 +181,11 @@ export async function initializeViewer(config, instanceId) {
181
  app.start();
182
  progressDialog.style.display = 'none';
183
 
184
- const quat = new pc.Quat();
185
- quat.setFromEulerAngles(modelRotationX, modelRotationY, modelRotationZ);
186
-
187
  modelEntity = new pc.Entity('model');
188
  modelEntity.addComponent('gsplat', { asset: assets.sogs });
189
  modelEntity.setLocalPosition(modelX, modelY, modelZ);
190
- modelEntity.setLocalRotation(quat);
191
  modelEntity.setLocalScale(modelScale, modelScale, modelScale);
192
  app.root.addChild(modelEntity);
193
 
 
181
  app.start();
182
  progressDialog.style.display = 'none';
183
 
184
+
 
 
185
  modelEntity = new pc.Entity('model');
186
  modelEntity.addComponent('gsplat', { asset: assets.sogs });
187
  modelEntity.setLocalPosition(modelX, modelY, modelZ);
188
+ modelEntity.setFromEulerAngles(modelRotationX, modelRotationY, modelRotationZ);
189
  modelEntity.setLocalScale(modelScale, modelScale, modelScale);
190
  app.root.addChild(modelEntity);
191