From afa2e0db989b76ef63ea41375ba6b5168b9afc00 Mon Sep 17 00:00:00 2001 From: spatialfree Date: Sat, 7 Dec 2024 18:45:53 -0500 Subject: [PATCH] account for color cube orientation --- src/Dofs.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dofs.cs b/src/Dofs.cs index 19273a3..fea5c97 100644 --- a/src/Dofs.cs +++ b/src/Dofs.cs @@ -50,7 +50,7 @@ static class ColorCube { Vec3 delta = grab.pose.position - last_position; // move cube around picker which is constrained by cube limits - cursor -= delta / scl; + cursor -= grab.pose.orientation.Inverse * delta / scl; cursor = V.XYZ( Maths.s_clamp(cursor.x, 0.5f),