An S4 class to represent a larger predator.
locationA numerical vector of length 2 specifying the x- and y-position of the object [Default: c(0, 0)].
velocityA numeric vector for specifying the object's velocity, where the first value specifies the velocity in the x-direction and the second in the y-direction [Default: c(0.0, 0.0)].
activeA length-one logical vector indicating whether the object is active [Default: TRUE].
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.