Set rock animation
setRock(NGLVieweR, rock = TRUE)
A NGLVieweR object.
If TRUE
(default), start rocking and stop spinning.
setRock parameter to TRUE
or FALSE
in NGLVieweR
htmlwidgets
object.
Other animations:
setSpin()
,
updateRock()
,
updateSpin()
,
updateZoomMove()
NGLVieweR("7CID") %>%
addRepresentation("cartoon", param=list(name="cartoon", colorValue="blue")) %>%
setRock(TRUE)