Skip to contents

Continuously rotates a mobject (for use with updaters/looping).

Super class

manimR::Animation -> Rotating

Public fields

angular_velocity

Radians per second

axis

Rotation axis

about_point

Center of rotation

Methods

Inherited methods


Method new()

Create a Rotating animation

Usage

Rotating$new(
  mobject,
  angular_velocity = TAU/4,
  axis = c(0, 0, 1),
  about_point = NULL,
  run_time = 2,
  ...
)

Arguments

mobject

Mobject to rotate

angular_velocity

Radians per second

axis

Rotation axis

about_point

Center of rotation

run_time

Duration

...

Additional args


Method begin()

Save starting state

Usage

Rotating$begin()


Method interpolate_mobject()

Apply continuous rotation

Usage

Rotating$interpolate_mobject(alpha)

Arguments

alpha

Linear progress


Method clone()

The objects of this class are cloneable with this method.

Usage

Rotating$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.