I’ve been searching online for an answer but haven’t been able to figure my issue out… I want to scale a rotated object using a world vector. The problem is the object thinks it is a local vector and doesn’t scale correctly.
what I tried to do is:
localVector.copy(vector); localVector.applyQuaternion(instance.quaternion.inverse()); instance.scale.set(instance.scale.x * localVector.x,instance.scale.y * localVector.y,instance.scale.z * localVector.z);
But it doesn’t work… the scaling isn’t accurate. What am I doing wrong?
I’m using r71 because I can’t update to a new version since it breaks my code (I’ve tried updating).