如何使用three.js在z轴上平移正方形

How to tranlate a square on the z axis using three.js?

本文关键字:正方形 何使用 three js      更新时间:2023-09-26

我需要一些帮助来翻译z轴上的正方形。有没有关于如何最好地使用three.js来实现这一点的例子?

square.translateZ(50);

此处为Object3D文档:http://mrdoob.github.com/three.js/docs/55/#Reference/Core/Object3D

来源:https://github.com/mrdoob/three.js/blob/master/src/core/Object3D.js