From 3cabf77da8b9681ed9683fe92c23054d6f49d848 Mon Sep 17 00:00:00 2001 From: Sakarias Johansson Date: Wed, 8 Mar 2023 20:47:02 +0100 Subject: =?UTF-8?q?=F0=9F=8E=A5=20Add=20support=20for=20camera=20looking?= =?UTF-8?q?=20at=20direction.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Set position of camera. - Set look position of camera. - Set FOV --- racer-tracer/src/util.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'racer-tracer/src/util.rs') diff --git a/racer-tracer/src/util.rs b/racer-tracer/src/util.rs index dc39e1c..2f04567 100644 --- a/racer-tracer/src/util.rs +++ b/racer-tracer/src/util.rs @@ -1,9 +1,9 @@ use rand::Rng; -/* + // For later use -fn degrees_to_radians(degrees: f64) -> f64 { +pub fn degrees_to_radians(degrees: f64) -> f64 { degrees * std::f64::consts::PI / 180.0 -}*/ +} pub fn random_double() -> f64 { let mut rng = rand::thread_rng(); -- cgit v1.2.3