To rotate a 3D model use the rotate method for example:
Ninja is a model
n is a ninja
n.rotate(y+360) in 3 seconds
The above code rotated the Ninja 360 degrees in 3 seconds around the Y axis.
You can rotate your models around the X,Y and Z axes