three.js - A-Frame: How do you add multiple meshes to an entity with setObject3D? -


with a-frames tags, 1 can add multiple components children entity:

<a-scene>   <a-entity>    <a-box>...</a-box>    <a-box>...</a-box>   </a-entity> <a-scene> 

how duplicate in registered component setobject3d method?

codepen: https://codepen.io/ubermario/pen/wrwjvg

yup, can name object3d want. mesh word sort of commonly accepted meshes , used geometry/material components. clarify:

setobject3d('mesh')

setobject3d('yourobject')

setobject3d('whateveryouwantbox');


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -