worldDirection property
Vector3
get
worldDirection
The light's world-space travel direction.
Implementation
Vector3 get worldDirection {
if (_usesLightDirection) return light.direction.normalized();
final localDirection = _localDirection;
if (localDirection != null) {
return node.globalTransform.rotate3(localDirection.clone()).normalized();
}
return (node.globalTransform.getRotation() * Vector3(0, 0, 1))..normalize();
}