SetLightDirection
DocsSetLightDirection(xDir, yDir, zDir, xTanDir, yTanDir, zTanDir)Description
Set the forward and tangent direction vectors for an existing light, allowing control over its orientation (useful for spotlights and directional lights).
Parameters
| Name | Type | Description |
|---|---|---|
xDir | float | , **yDir**, **zDir**: Components of the normalized forward (direction) vector |
yDir | float | — |
zDir | float | — |
xTanDir | float | , **yTanDir**, **zTanDir**: Components of the normalized tangent vector (defines rotation around the forward axis) |
yTanDir | float | — |
zTanDir | float | — |
Returns
voidThis native does not return a value.