Skip to contents

Rotate an object

Usage

rotate(
  scene,
  angle,
  about_point = NULL,
  duration = 1,
  easing = "smooth",
  degrees = FALSE,
  target_object = NULL
)

Arguments

scene

A Scene object

angle

Rotation angle in radians (or degrees if degrees = TRUE)

about_point

Point to rotate around

duration

Duration in seconds

easing

Easing function

degrees

If TRUE, interpret angle as degrees

target_object

Optional ID of specific object to rotate

Value

The Scene object (invisibly) for piping