Explanation of the translateOnAxis() function in Three.js
HandsomeTan
Posted on November 22, 2024
translateOnAxis()
takes two parameters: vector3
and distance
.
The first parameter indicates in which direction Object3D
translate and it' s a vector3
that require to be normalized. The second parameter represents translate distance.
Note: vector3
must be normalized, otherwise the distance
paramter could be incorrect for Object3D
💖 💪 🙅 🚩
HandsomeTan
Posted on November 22, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.