moveToPoint method

void moveToPoint(
  1. Vector3 target, {
  2. Vector3? alignedEdge,
  3. Vector3? coordinateMask,
})

Implementation

void moveToPoint(Vector3 target,
    {Vector3? alignedEdge, Vector3? coordinateMask}) {
  alignedEdge ??= ORIGIN;
  coordinateMask ??= Vector3(1, 1, 1);
  var pointToAlign = getCriticalPoint(alignedEdge);
  shift((target - pointToAlign) * coordinateMask);
}