Documentation

Classes

Class CL3D.AnimatorFlyStraight

Scene node animator making CL3D.SceneNodes move along straight line between two points.

Extends CL3D.Animator.

Class Overview
CL3D.AnimatorFlyStraight(start, end, timeForWay, loop, deleteMeAfterEndReached, animateCameraTargetInsteadOfPosition)
Scene node animator making CL3D.SceneNodes move along straight line between two points.
Parameters:
{CL3D.Vect3d} start
Start 3d position of the line
{CL3D.Vect3d} end
End 3d position of the line
{Number} timeForWay
Time for moving along the whole line in milliseconds. For example 2000 for 2 seconds.
{Boolean} loop
set to true for looping along the line, false for stopping movement when the end has been reached.
{Boolean} deleteMeAfterEndReached
set to true if the animator should delete itself after the end has been reached.
{Boolean} animateCameraTargetInsteadOfPosition
if the animated node is a camera, set to true to animate the camera target instead of the position of the camera.

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.
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 AnimatorFlyStraight, this will return 'flystraight'.

© 2011-2018 N.Gebhardt, Ambiera
Documentation generated by JsDoc Toolkit