worldToLocal method
Vector3
worldToLocal(
- Vector3 vector
inherited
vector
- A vector representing a position in world space.
Converts the vector from world space to this object's local space.
Implementation
Vector3 worldToLocal(Vector3 vector) {
m1.setFrom(matrixWorld);
m1.invert();
vector.applyMatrix4(m1);
return vector;
}