08 2024 档案
TransformControls 用于在网页中进行 3D 场景中物体的交互式操作
摘要:demo案例:https://techbrood.com/threejs/examples/#misc_controls_transform TransformControls 是 Three.js 中的一个类,用于在网页中进行 3D 场景中物体的交互式操作。让我们来详细讲解它的输入参数、输出、属性
阅读全文
three.js orbitcontrol更改绕x轴与z轴旋转
摘要:camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 0.1, 10000); camera.position.z = 2900; //关键就是设置camera的up为y轴 camera.up
阅读全文