Explanation of the translateOnAxis() function in Three.js

handsometan

HandsomeTan

Posted on November 22, 2024

Explanation of the translateOnAxis() function in Three.js

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
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.

Related

What was your win this week?
weeklyretro What was your win this week?

November 29, 2024

Where GitOps Meets ClickOps
devops Where GitOps Meets ClickOps

November 29, 2024