rename gizmo translation args

This commit is contained in:
Nick Fisher
2024-05-09 13:39:18 +08:00
parent 1a6529b315
commit f0058d4009

View File

@@ -28,7 +28,7 @@ class Gizmo {
await controller.reveal(z, null);
}
void translate(double x, double y) async {
void translate(double transX, double transY) async {
late Vector3 vec;
if (_activeAxis == x) {
vec = _x;
@@ -38,7 +38,7 @@ class Gizmo {
vec = _z;
}
await controller.queuePositionUpdate(
_activeEntity!, x * vec.x, -y * vec.y, -x * vec.z,
_activeEntity!, transX * vec.x, -transY * vec.y, -transX * vec.z,
relative: true);
}