Class GLGE.Object
Extends
GLGE.Animatable, GLGE.Placeable.
An object that can be rendered in a scene
Defined in: glge.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
blendAction(action, duration)
Blend from current skeletal action to another
|
|
Gets the current skeletal action of this object
|
|
Gets the material associated with the object
|
|
getMesh()
Gets the mesh associated with the object
|
|
getScene()
|
|
Gets the current skeletal action of this object
|
|
Gets the z transparency
|
|
setAction(action)
Sets the skeletal action of this object
|
|
Sets the material associated with the object
|
|
setMesh()
Sets the mesh associated with the object
|
|
setScene(scene)
|
|
setSkeleton(action)
Sets the skeletal action of this object
|
|
setZtransparent(value)
Sets the Z Transparency of this object
|
- Methods borrowed from class GLGE.Animatable:
- animate, getAnimation, getFrameRate, setAnimation, setFrameRate
- Methods borrowed from class GLGE.Placeable:
- getDLocX, getDLocY, getDLocZ, getDRotX, getDRotY, getDRotZ, getDScaleX, getDScaleY, getDScaleZ, getLocX, getLocY, getLocZ, getModelMatrix, getPosition, getRotation, getRotMatrix, getRotX, getRotY, getRotZ, getSacleY, getScale, getScaleX, getScaleZ, setDLoc, setDLocX, setDLocY, setDLocZ, setDRot, setDRotX, setDRotY, setDRotZ, setDScale, setDScaleX, setDScaleY, setDScaleZ, setLoc, setLocX, setLocY, setLocZ, setRot, setRotX, setRotY, setRotZ, setScale, setScaleX, setScaleY, setScaleZ
Method Detail
blendAction(action, duration)
Blend from current skeletal action to another
- Parameters:
- {GLGE.SkeletalAction} action
- The action to be blended to
- {Number} duration
- Number of millisecons the blend should last for
getAction()
Gets the current skeletal action of this object
- Returns:
- GLGE.SkeletalAction
getMaterial()
Gets the material associated with the object
- Returns:
- GLGE.Material
getMesh()
Gets the mesh associated with the object
- Returns:
- GLGE.Mesh
getScene()
getSkeleton()
Gets the current skeletal action of this object
- Returns:
- GLGE.SkeletalAction
isZtransparent()
Gets the z transparency
- Returns:
- boolean
setAction(action)
Sets the skeletal action of this object
- Parameters:
- {GLGE.SkeletalAction} action
- The action to be blended to
setMaterial()
Sets the material associated with the object
- Parameters:
- GLGE.Material
setMesh()
Sets the mesh associated with the object
- Parameters:
- GLGE.Mesh
setScene(scene)
- Parameters:
- scene
setSkeleton(action)
Sets the skeletal action of this object
- Parameters:
- {GLGE.SkeletalAction} action
- The action to be blended to
setZtransparent(value)
Sets the Z Transparency of this object
- Parameters:
- {boolean} value
- Does this object need blending?