threejs改变模型的旋转中心

2022-11-04  本文已影响0人  板栗炖牛肉

前言

解决方案

    ...
    let mesh = 模型
    let group = new THREE.Object3D();
    group.position.set(0, 0, 0); //世界原点坐标
    group.add(mesh);
    mesh.position.set(偏移X,偏移Y, 偏移Z);
    ...
image.png
...
   mesh.rotateZ(0.01);
 ...
image.png

ps

上一篇 下一篇

猜你喜欢

热点阅读