I am working on an aframe project that involves loading 3D objects of unknown sizes into my scene. Naturally I would want to resize the object to a certain size (like fixed height) before I put it in the scene. But how do I extract information like width, height and depth from the object's bounding box?
相关问题
- Rotating an Object properly around a pivot point g
- Loading texture from Web Worker in Three.js
- My object isn't reflects the light in Three.js
- Black background for three.js sprites with depthTe
- Export ThreeJS Geometry to JSON
相关文章
- Get size of Object3D in Three.js
- Change color of mesh using mouseover in three js
- THREE.Object3D.add: object not an instance of THRE
- Why do I need to define a precision value in webgl
- Check a face is upwards/downwards towards mouse di
- How to change one texture image of a 3d model(maya
- Why do my three.js examples not load properly?
- Converting screen point to point on equirectangula
You'll need to use A-Frame's underlying three.js APIs here. That answer has been posted for three.js before, but here's an A-Frame version: