API Documentation
Classes
- _global_
- GLGE
- GLGE.Action
- GLGE.ActionChannel
- GLGE.Animatable
- GLGE.AnimationCurve
- GLGE.AnimationVector
- GLGE.Assets
- GLGE.BezTriple
- GLGE.Camera
- GLGE.Collada
- GLGE.Document
- GLGE.DocumentPreloader
- GLGE.Events
- GLGE.FilePreloader
- GLGE.FilterAO
- GLGE.FilterGlow
- GLGE.Group
- GLGE.GUI
- GLGE.HeightMap
- GLGE.JSONLoader
- GLGE.KeyInput
- GLGE.Light
- GLGE.LinearPoint
- GLGE.Material
- GLGE.MaterialLayer
- GLGE.MD2
- GLGE.Mesh
- GLGE.Message
- GLGE.MouseInput
- GLGE.MultiMaterial
- GLGE.Object
- GLGE.ObjectLod
- GLGE.ParticleSystem
- GLGE.PhysicsAbstract
- GLGE.PhysicsBox
- GLGE.PhysicsCar
- GLGE.PhysicsConstraintPoint
- GLGE.PhysicsMesh
- GLGE.PhysicsPlane
- GLGE.PhysicsSphere
- GLGE.PhysicsWheel
- GLGE.Placeable
- GLGE.QuickNotation
- GLGE.Renderer
- GLGE.Scene
- GLGE.Sphere
- GLGE.StepPoint
- GLGE.Text
- GLGE.Texture
- GLGE.TextureCamera
- GLGE.TextureCanvas
- GLGE.TextureCube
- GLGE.TextureVideo
- GLGE.Wavefront
- GUI.Gadget
- GUI.Preloader
- GUI.Progressbar
- GUI.Widget
Extends
GLGE.Events.
Animation class to agument animatiable objects
Defined in: glge_animatable.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
|
animate(now, nocache)
update animated properties on this object
|
|
|
blendTo(properties, duration, blendFunction[optional])
Creates and sets an animation to blend to the properties.
|
|
|
Gets the animation vector of this object
|
|
|
Gets the animation blending function
|
|
|
getFrameNumber(now)
gets the frame at the specified time
|
|
|
Gets the frame rate of the animation
|
|
|
getLoop()
Gets the loop flag
|
|
|
getName()
Gets the name of this object used for skinning
|
|
|
Gets the paused flag
|
|
|
setAnimation(animationVector, blendDuration, starttime)
Sets the animation vector of this object
|
|
|
setBlendFunction(value)
Sets the animation blending function
|
|
|
setFrameRate(value)
Sets the frame rate of the animation
|
|
|
setLoop(value)
Sets the loop flag to GLGE.TRUE or GLGE.FALSE
|
|
|
setName(value)
Sets the name of this object used for skinning
|
|
|
setPaused(value)
Sets the paused flag to GLGE.TRUE or GLGE.FALSE
|
|
|
setStartFrame(startFrame, blendTime, loop)
Sets the start frame for the animation overriding the animation default
|
|
|
Toggles the paused flag
|
- Methods borrowed from class GLGE.Events:
- addEventListener, fireEvent, removeEventListener
| Event Attributes | Event Name and Description |
|---|---|
|
animFinished(data)
|
Method Detail
animate(now, nocache)
update animated properties on this object
- Parameters:
- now
- nocache
blendTo(properties, duration, blendFunction[optional])
Creates and sets an animation to blend to the properties. Useful for blending to a specific location for example:
blendto({LocX:10,LocY:5,LocZ:10},2000);
- Parameters:
- {object} properties
- The properties to blend
- {number} duration
- the duration of the blend
- {function} blendFunction[optional]
- the function used for blending defaults to GLGE.LINEAR_BLEND
{AnimationVector}
getAnimation()
Gets the animation vector of this object
- Returns:
- {AnimationVector}
{function}
getBlendFunction()
Gets the animation blending function
- Returns:
- {function} the blending function
getFrameNumber(now)
gets the frame at the specified time
- Parameters:
- {number} now
- the current time
{number}
getFrameRate()
Gets the frame rate of the animation
- Returns:
- {number} the current frame rate
{boolean}
getLoop()
Gets the loop flag
- Returns:
- {boolean}
{String}
getName()
Gets the name of this object used for skinning
- Returns:
- {String} the name
{boolean}
getPaused()
Gets the paused flag
- Returns:
- {boolean}
isLooping()
setAnimation(animationVector, blendDuration, starttime)
Sets the animation vector of this object
- Parameters:
- {GLGE.AnimationVector} animationVector
- the animation to apply to this object
- {number} blendDuration
- [Optional] the time in milliseconds to blend into this animation
- {number} starttime
- [Optional] the starting time of the animation
setBlendFunction(value)
Sets the animation blending function
- Parameters:
- {function} value
- The blending function
setFrameRate(value)
Sets the frame rate of the animation
- Parameters:
- {number} value
- the frame rate to set
setLoop(value)
Sets the loop flag to GLGE.TRUE or GLGE.FALSE
- Parameters:
- {boolean} value
setName(value)
Sets the name of this object used for skinning
- Parameters:
- {String} value
- The name to set
setPaused(value)
Sets the paused flag to GLGE.TRUE or GLGE.FALSE
- Parameters:
- {boolean} value
setStartFrame(startFrame, blendTime, loop)
Sets the start frame for the animation overriding the animation default
- Parameters:
- {number} startFrame
- the start frame
- blendTime
- loop
{boolean}
togglePaused()
Toggles the paused flag
- Returns:
- {boolean} returns the resulting flag state
Event Detail
animFinished(data)
- Parameters:
- {object} data
Documentation generated by JsDoc Toolkit 2.4.0 on Sun Feb 12 2012 14:20:23 GMT+0000 (GMT)