Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
21
rated 0 times [  23] [ 2]  / answers: 1 / hits: 84344  / 12 Years ago, wed, june 20, 2012, 12:00:00

Is there any way to move an object forward in Three.js?



Maybe I should convert the rotation.x,y,z to a vector, and deal with it. But I'm beginner, and I don't have any idea how to do it.


More From » three.js

 Answers
155

Object3D has some handy methods for that.



object.translateZ( 10 );

[#84767] Wednesday, June 20, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
griffinr

Total Points: 242
Total Questions: 91
Total Answers: 105

Location: Indonesia
Member since Wed, Jul 7, 2021
3 Years ago
griffinr questions
;