标签: javascript html5 transform three.js webgl
我需要一些帮助来尝试在z轴上平移一个正方形。有没有关于如何使用three.js做到最好的例子?
答案 0 :(得分:0)
square.translateZ(50);
Object3D docs:http://mrdoob.github.com/three.js/docs/55/#Reference/Core/Object3D
来源:https://github.com/mrdoob/three.js/blob/master/src/core/Object3D.js