simulator orbital view

This commit is contained in:
ethan merchant 2024-11-10 07:06:15 -05:00
parent a906d2bfdc
commit 2eb15dd992

View file

@ -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