alignToMobject method

void alignToMobject(
  1. Mobject mob, {
  2. Vector3? direction,
})

Implementation

void alignToMobject(Mobject mob, {Vector3? direction}) {
  direction ??= ORIGIN;

  alignToPoint(mob.getCriticalPoint(direction), direction: direction);
}