Set rock animation

setRock(NGLVieweR, rock = TRUE)

Arguments

NGLVieweR

A NGLVieweR object.

rock

If TRUE (default), start rocking and stop spinning.

Value

setRock parameter to TRUE or FALSE in NGLVieweR htmlwidgets object.

Details

Only one animation can run at a time. If both setRock(TRUE) and setSpin(TRUE) are used, the structure spins.

Examples

NGLVieweR("7CID") %>%
 addRepresentation("cartoon", param=list(name="cartoon", colorValue="blue")) %>%
 setRock(TRUE)