worldDirection property
Vector3
get
worldDirection
The cone's world-space aim: the owning node's world-space rotation applied to the light's local SpotLight.direction. Need not be unit length (the shader normalizes it).
Implementation
Vector3 get worldDirection =>
node.globalTransform.getRotation() * light.direction;