formatting
This commit is contained in:
parent
fc89e9daf9
commit
ff58cc16ff
|
@ -60,12 +60,10 @@ function Model({ gltfModel, ...props }) {
|
|||
const maxSize = Math.max(sizeModel.x, sizeModel.y, sizeModel.z);
|
||||
const scale = Math.min(size.width, size.height) / maxSize;
|
||||
|
||||
|
||||
console.log("scaling factor is ", scale)
|
||||
// Apply the scaling factor to the model
|
||||
modelRef.current.scale.set(scale, scale, scale);
|
||||
|
||||
|
||||
const boxAfterScaling = new Box3().setFromObject(modelRef.current);
|
||||
const sizeModelAfterScaling = new Vector3();
|
||||
boxAfterScaling.getSize(sizeModelAfterScaling);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue