When i use getWorldPosition function it returns a vector with x-value is another vector3, how to convert it to standard vector3.
By showing the code you’re using, because in no scenario does this code set a vector to a vector component (unless you someway manually forced a Vector3 into the matrixWorld.)
i really think i did someway manually forced a Vector3 into the matrixWorld, this is my code:
export function getworldposition(object) {
var centroid = new THREE.Vector3();
return object.getWorldPosition(centroid);
}
sorry i found what i did wrong, that was another binded vector i made after, so silly, thks for reply, professor
1 Like