Skip to contents

Shift an object by a vector

Usage

shift(scene, direction, duration = 1, easing = "smooth", target_object = NULL)

Arguments

scene

A Scene object

direction

Direction vector as c(dx, dy) or c(dx, dy, dz)

duration

Duration in seconds

easing

Easing function

target_object

Optional ID of specific object to shift

Value

The Scene object (invisibly) for piping