Skip to contents

Rotates a mobject by a given angle over time. Distinct from VMobject$rotate() which is an immediate transform.

Super class

manimR::Animation -> RotateAnim

Public fields

angle

Total rotation angle in radians

axis

Rotation axis (for 3D)

about_point

Center of rotation (NULL = mobject center)

Methods

Inherited methods


Method new()

Create a Rotate animation

Usage

RotateAnim$new(
  mobject,
  angle = PI,
  axis = c(0, 0, 1),
  about_point = NULL,
  run_time = 1,
  rate_func = "smooth",
  ...
)

Arguments

mobject

Mobject to rotate

angle

Angle in radians (default: PI = half turn)

axis

Rotation axis c(x, y, z) (default: c(0, 0, 1) = Z-axis)

about_point

Center of rotation

run_time

Duration

rate_func

Easing

...

Additional args


Method begin()

Save starting state

Usage

RotateAnim$begin()


Method interpolate_mobject()

Interpolate rotation

Usage

RotateAnim$interpolate_mobject(alpha)

Arguments

alpha

Eased progress


Method clone()

The objects of this class are cloneable with this method.

Usage

RotateAnim$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.