Alisa Bondarchuk
Alisa Bondarchuk

Reputation: 67

How to set the distance between two models?

I'm looking for methods to set the distance between the two models, because after loading these models, one model is inside the second.

Upvotes: 0

Views: 82

Answers (1)

Bryan Huang
Bryan Huang

Reputation: 5342

The easiest way would be to use placement transformation (translation, rotation and scaling) in your options to load the model - see more here

var loadOptions = {
      placementTransform: THREE.Matrix4, //your transform matrix goes here 
       globalOffset:{x:0,y:0,z:0}
    };
...
viewer.loadModel(svfPath,loadOptions)

See live sample here

Upvotes: 1

Related Questions