From 2eb15dd992bc52b2dc18e06d2cd29cbf0116a7bb Mon Sep 17 00:00:00 2001 From: spatialfree Date: Sun, 10 Nov 2024 07:06:15 -0500 Subject: [PATCH] simulator orbital view --- src/Mono.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Mono.cs b/src/Mono.cs index 6afa12c..b9796ea 100644 --- a/src/Mono.cs +++ b/src/Mono.cs @@ -64,8 +64,11 @@ static class Mono if (Input.Key(Key.MouseCenter).IsActive()) { float sx = Input.Mouse.posChange.x; - float ssx = Maths.smooth_start(sx); - box_pose.orientation *= Quat.FromAngles(0, sx * 180.0f * Time.Stepf, 0); + Renderer.CameraRoot *= Matrix.R( + Quat.FromAngles(0, -sx * 180.0f * Time.Stepf, 0) + ); + // orbital_view + box_pose.position = Input.Head.position + Input.Head.orientation * V.XYZ(0, -0 * U.cm, -10 * U.cm); } } else