Skip to main content

forward_3d

Function forward_3d 

Source
pub fn forward_3d(yaw: f32, pitch: f32) -> Vec3
Expand description

Unit vector pointing in compass direction yaw, tilted up by pitch degrees (90 = straight up, -90 = straight down). With pitch 0 it equals forward.