getWorldDirection method
target
— the result will be copied into this Vector3.
Returns a Vector3
representing the world space direction in which
the camera is looking. (Note: A camera looks down its local, negative
z-axis).
Implementation
@override
Vector3 getWorldDirection(Vector3 target) {
updateWorldMatrix(true, false);
final e = matrixWorld.storage;
target.setValues(-e[8], -e[9], -e[10]);
target.normalize();
return target;
}