clump.rotate

Syntax

b = clump.rotate(c,v,f)

Rotate a clump. The rotation point is the clump position, and it is rotated in a right handed sense about the v axis by f degrees.

Note

  • All pebbles of the rotated clump must fall within the model domain for the operation to succeed.
  • Should the orientation tracking be active, then the orientation is updated (see the model orientation-tracking command).
Returns:

b - boolean indicating success/failure of operation

Arguments:

c - clump pointer

v - axis of rotation

f - rotation angle in degrees