spot_light_world_from_view

Function spot_light_world_from_view 

Source
pub fn spot_light_world_from_view(transform: &GlobalTransform) -> Affine3A
Expand description

Constructs a right-handed orthonormal basis with translation, using only the forward direction and translation of a given GlobalTransform.

This is a version of orthonormalize which also includes translation.