Documentation

Classes

Class AnimatorFlyCircle

Scene node animator making SceneNodes move in a circle

Extends Animator.

Class Overview
AnimatorFlyCircle(center, radius, direction, speed)
Scene node animator making SceneNodes move in a circle
Parameters:
center
{Vect3d} 3d position of the center of the circle
radius
{Number} radius of the circle
direction
{Vect3d} direction of the circle. For example (0,1,0) for up.
speed
{Number} movement speed, for example 0.01

Method Summary
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.
 
Returns the type of the animator.
 
init()
Methods borrowed from class Animator:
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:
n
The Scene node which needs to be animated this frame.
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()

© 2010 N.Gebhardt, Ambiera
Documentation generated by JsDoc Toolkit