account for color cube orientation
This commit is contained in:
parent
e42bafc962
commit
afa2e0db98
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue