Rotation effect.
In many situations, we will want to add a little animation to the object by make it self-rotate. We can do it with the below script:
function UpdateS()
shape.Rot.x = time * shape.CData[0]
shape.Rot.y = time * shape.CData[1]
shape.Rot.z = time * shape.CData[2]
end
Tag the pattern we want to self-rotate and set the angular speed via three axes in CData 0, 1, 2