DirectionalLightComponent.aimed constructor

DirectionalLightComponent.aimed(
  1. DirectionalLight light,
  2. Vector3 localDirection
)

Creates a component that travels along localDirection.

The owning node's rotation transforms this direction into world space.

Implementation

DirectionalLightComponent.aimed(this.light, Vector3 localDirection)
  : _usesLightDirection = false,
    _localDirection = localDirection.clone();