account for color cube orientation

This commit is contained in:
ethan merchant 2024-12-07 18:45:53 -05:00
parent e42bafc962
commit afa2e0db98

View file

@ -50,7 +50,7 @@ static class ColorCube
{ {
Vec3 delta = grab.pose.position - last_position; Vec3 delta = grab.pose.position - last_position;
// move cube around picker which is constrained by cube limits // move cube around picker which is constrained by cube limits
cursor -= delta / scl; cursor -= grab.pose.orientation.Inverse * delta / scl;
cursor = V.XYZ( cursor = V.XYZ(
Maths.s_clamp(cursor.x, 0.5f), Maths.s_clamp(cursor.x, 0.5f),