You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constgeometry=newTHREE.BoxGeometry(1,1,1);constmaterial=newTHREE.MeshBasicMaterial({color: 0x13a3f6});constmesh=newTHREE.Mesh(geometry,material);SCENE.add(mesh);// Mesh positionmesh.position.x=0;mesh.position.y=-2;mesh.position.z=0.5;// Mesh position setmesh.position.set(0,-2,0.5);// Mesh length console.log('mesh length: ',mesh.position.length())// Mesh normalize console.log('mesh normalize: ',mesh.position.length())// Add trục tọa độ x, y, z để tham khảo// AxesHelperconstAxesHelper=newTHREE.AxesHelper(3)SCENE.add(AxesHelper)
Scale: tương tự như position, scale tự scale object