Reputation: 811
With particular reference to Three.BoundingBoxHelper is this correct? I want to use the numbers to clone and array a collection of objects a number of times in a specified direction. Perhaps there is a better way?
Upvotes: 0
Views: 107
Reputation: 44336
If you don't want y
but z
to point up you could consider changing the default up for your three.js
project by setting THREE.Object3D.DefaultUp
to 0,0,1
:
THREE.Object3D.DefaultUp.set( 0, 0, 1 );
Upvotes: 1
Reputation: 1074
A bounding box gives you a couple of Vector3 where you know the minimums and maximums where your object would fit in.
So, yes, the height or Y distance for your object would be:
abs(min.y)+max.y
Upvotes: 1