translate method

void translate(
  1. double transX,
  2. double transY
)
override

Implementation

void translate(double transX, double transY) async {
  late Vector3 vec;
  if (_activeAxis == x) {
    vec = _x;
  } else if (_activeAxis == y) {
    vec = _y;
  } else if (_activeAxis == z) {
    vec = _z;
  }
  await controller.queuePositionUpdate(
      _activeEntity!, transX * vec.x, -transY * vec.y, -transX * vec.z,
      relative: true);
}