Skip to main content

mounted_camera

Function mounted_camera 

Source
pub fn mounted_camera(
    body: Motor,
    eye: [f64; 3],
    local_angles: [f32; 2],
    center: [f64; 3],
    scale: f64,
) -> Result<MountedCamera, MountError>
Expand description

Local angles are relative to the body’s forward (-Z). Scene center/scale must be the same normalization used by geometry upload and HUD projection.