CopperLicht API Documentation
Class CL3D.AnimatorFlyCircle
Scene node animator making CL3D.SceneNodes move in a circle
Extends
CL3D.Animator.
Class Overview
CL3D.AnimatorFlyCircle(center, radius, direction, speed)
Scene node animator making CL3D.SceneNodes move in a circle
- Parameters:
- {CL3D.Vect3d} center
- 3d position of the center of the circle
- {Number} radius
- radius of the circle
- {CL3D.Vect3d} direction
- direction of the circle. For example (0,1,0) for up.
- {Number} speed
- movement speed, for example 0.01
Method Attributes | Method Name and Description |
---|---|
animateNode(n, timeMs)
Animates the scene node it is attached to and returns true if scene node was modified.
|
|
getType()
Returns the type of the animator.
|
|
init()
|
- Methods borrowed from class CL3D.Animator:
- createClone, onKeyDown, onKeyUp, onMouseDown, onMouseMove, onMouseUp, onMouseWheel
Method Detail
animateNode(n, timeMs)
Animates the scene node it is attached to and returns true if scene node was modified.
- Parameters:
- {CL3D.SceneNode} n
- The Scene node which needs to be animated this frame.
- {Integer} timeMs
- The time in milliseconds since the start of the scene.
getType()
Returns the type of the animator.
For the AnimatorFlyCircle, this will return 'flycircle'.
init()