rotateTo method

Motion rotateTo(
  1. Quat rotation, {
  2. double? seconds,
  3. double? speed,
  4. EaseFunction ease = Ease.outQuad,
  5. double delay = 0,
  6. int loops = 1,
  7. bool yoyo = false,
  8. bool unscaled = false,
  9. void onComplete()?,
})
inherited

Turns the object to rotation in the world the short way round, over seconds or at speed radians a second: see moveTo. localRotateTo counts from the parent.

Implementation

Motion rotateTo(
  Quat rotation, {
  double? seconds,
  double? speed,
  EaseFunction ease = Ease.outQuad,
  double delay = 0,
  int loops = 1,
  bool yoyo = false,
  bool unscaled = false,
  void Function()? onComplete,
}) => _value<Quat>(
  () => _self.worldTransform.rotation,
  (_) => rotation,
  Quat.slerp,
  _angle,
  _setRotation,
  seconds: seconds,
  speed: speed,
  ease: ease,
  delay: delay,
  loops: loops,
  yoyo: yoyo,
  unscaled: unscaled,
  onComplete: onComplete,
);