Archive 17/01/2023.

Difference between light SetDirection and SetPosition/Rotati

umen

what is the difference between when i set light rotation and direction ?
is the light setDirection is the end target for which the the light is pointing at ?
so i don’t need to set the rotation ?

cadaver

SetDirection() and SetRotation() are just different ways of achieving the same thing: setting the scene node’s orientation in space. The light always shines in the direction of its scene node’s local forward (positive Z) axis.

umen

Thanks for your quick answer