three.js - Get translation from matrix4() -


it may dummy question of three.js developers but, how can translation extracted transformation matrix?

actually extracting manually pointing matrix array positions (12, 13, 14).

thanks in advance.

if want extract translation component matrix, use pattern:

var vec = new three.vector3(); vec.setfrommatrixposition( matrix4 ); 

use matrix4.decompose() if need translation, quaternion , scale components.

three.js r.73


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -