Class GLGE.Placeable
Abstract class to agument objects that requires position, rotation and scale.
Defined in: glge.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
getDLocX()
Gets the x location displacement of the object
|
|
getDLocY()
Gets the y location displacement of the object
|
|
getDLocZ()
Gets the z location displacement of the object
|
|
getDRotX()
Gets the x rotaional displacement of the object
|
|
getDRotY()
Gets the y rotaional displacement of the object
|
|
getDRotZ()
Gets the z rotaional displacement of the object
|
|
Gets the x scale displacement of the object
|
|
Gets the y scale displacement of the object
|
|
Gets the z scale displacement of the object
|
|
getLocX()
Gets the x location of the object
|
|
getLocY()
Gets the y location of the object
|
|
getLocZ()
Gets the z location of the object
|
|
Gets the model matrix to transform the model within the world
|
|
Gets the position of the object
|
|
Gets the rotation of the object
|
|
Gets the rotaion matrix
|
|
getRotX()
Gets the x rotation of the object
|
|
getRotY()
Gets the y rotation of the object
|
|
getRotZ()
Gets the z rotation of the object
|
|
Gets the y scale of the object
|
|
getScale()
Gets the scale of the object
|
|
Gets the x scale of the object
|
|
Gets the z scale of the object
|
|
setDLoc(x, y, z)
Sets the location displacement of the object, useful for animation
|
|
setDLocX(value)
Sets the x location displacement of the object, usefull for animation
|
|
setDLocY(value)
Sets the y location displacement of the object, usefull for animation
|
|
setDLocZ(value)
Sets the z location displacement of the object, usefull for animation
|
|
setDRot(x, y, z)
Sets the rotation displacement of the object, useful for animation
|
|
setDRotX(value)
Sets the x rotation displacement of the object, usefull for animation
|
|
setDRotY(value)
Sets the y rotation displacement of the object, usefull for animation
|
|
setDRotZ(value)
Sets the z rotation displacement of the object, usefull for animation
|
|
setDScale(x, y, z)
Sets the scale displacement of the object, useful for animation
|
|
setDScaleX(value)
Sets the x scale displacement of the object, usefull for animation
|
|
setDScaleY(value)
Sets the y scale displacement of the object, usefull for animation
|
|
setDScaleZ(value)
Sets the z scale displacement of the object, usefull for animation
|
|
setLoc(x, y, z)
Sets the location of the object
|
|
setLocX(value)
Sets the x location of the object
|
|
setLocY(value)
Sets the y location of the object
|
|
setLocZ(value)
Sets the z location of the object
|
|
setRot(x, y, z)
Sets the rotation of the object
|
|
setRotX(value)
Sets the x rotation of the object
|
|
setRotY(value)
Sets the y rotation of the object
|
|
setRotZ(value)
Sets the z rotation of the object
|
|
setScale(x, y, z)
Sets the scale of the object
|
|
setScaleX(value)
Sets the x scale of the object
|
|
setScaleY(value)
Sets the y scale of the object
|
|
setScaleZ(value)
Sets the z scale of the object
|
Method Detail
{number}
getDLocX()
Gets the x location displacement of the object
- Returns:
- {number}
{number}
getDLocY()
Gets the y location displacement of the object
- Returns:
- {number}
{number}
getDLocZ()
Gets the z location displacement of the object
- Returns:
- {number}
{number}
getDRotX()
Gets the x rotaional displacement of the object
- Returns:
- {number}
{number}
getDRotY()
Gets the y rotaional displacement of the object
- Returns:
- {number}
{number}
getDRotZ()
Gets the z rotaional displacement of the object
- Returns:
- {number}
{number}
getDScaleX()
Gets the x scale displacement of the object
- Returns:
- {number}
{number}
getDScaleY()
Gets the y scale displacement of the object
- Returns:
- {number}
{number}
getDScaleZ()
Gets the z scale displacement of the object
- Returns:
- {number}
{number}
getLocX()
Gets the x location of the object
- Returns:
- {number}
{number}
getLocY()
Gets the y location of the object
- Returns:
- {number}
{number}
getLocZ()
Gets the z location of the object
- Returns:
- {number}
getModelMatrix()
Gets the model matrix to transform the model within the world
{object}
getPosition()
Gets the position of the object
- Returns:
- {object}
{object}
getRotation()
Gets the rotation of the object
- Returns:
- {object}
{matrix}
getRotMatrix()
Gets the rotaion matrix
- Returns:
- {matrix} the objects rotation matrix
{number}
getRotX()
Gets the x rotation of the object
- Returns:
- {number}
{number}
getRotY()
Gets the y rotation of the object
- Returns:
- {number}
{number}
getRotZ()
Gets the z rotation of the object
- Returns:
- {number}
{number}
getSacleY()
Gets the y scale of the object
- Returns:
- {number}
{object}
getScale()
Gets the scale of the object
- Returns:
- {object}
{number}
getScaleX()
Gets the x scale of the object
- Returns:
- {number}
{number}
getScaleZ()
Gets the z scale of the object
- Returns:
- {number}
setDLoc(x, y, z)
Sets the location displacement of the object, useful for animation
- Parameters:
- {number} x
- The value to assign to the x position
- {number} y
- The value to assign to the y position
- {number} z
- The value to assign to the z position
setDLocX(value)
Sets the x location displacement of the object, usefull for animation
- Parameters:
- {number} value
- The value to assign to the x displacement
setDLocY(value)
Sets the y location displacement of the object, usefull for animation
- Parameters:
- {number} value
- The value to assign to the y displacement
setDLocZ(value)
Sets the z location displacement of the object, usefull for animation
- Parameters:
- {number} value
- The value to assign to the z displacement
setDRot(x, y, z)
Sets the rotation displacement of the object, useful for animation
- Parameters:
- {number} x
- The value to assign to the x rotation
- {number} y
- The value to assign to the y rotation
- {number} z
- The value to assign to the z rotation
setDRotX(value)
Sets the x rotation displacement of the object, usefull for animation
- Parameters:
- {number} value
- The value to assign to the x displacement
setDRotY(value)
Sets the y rotation displacement of the object, usefull for animation
- Parameters:
- {number} value
- The value to assign to the y displacement
setDRotZ(value)
Sets the z rotation displacement of the object, usefull for animation
- Parameters:
- {number} value
- The value to assign to the z displacement
setDScale(x, y, z)
Sets the scale displacement of the object, useful for animation
- Parameters:
- {number} x
- The value to assign to the x scale
- {number} y
- The value to assign to the y scale
- {number} z
- The value to assign to the z scale
setDScaleX(value)
Sets the x scale displacement of the object, usefull for animation
- Parameters:
- {number} value
- The value to assign to the x displacement
setDScaleY(value)
Sets the y scale displacement of the object, usefull for animation
- Parameters:
- {number} value
- The value to assign to the y displacement
setDScaleZ(value)
Sets the z scale displacement of the object, usefull for animation
- Parameters:
- {number} value
- The value to assign to the z displacement
setLoc(x, y, z)
Sets the location of the object
- Parameters:
- {number} x
- The value to assign to the x position
- {number} y
- The value to assign to the y position
- {number} z
- The value to assign to the z position
setLocX(value)
Sets the x location of the object
- Parameters:
- {number} value
- The value to assign to the x position
setLocY(value)
Sets the y location of the object
- Parameters:
- {number} value
- The value to assign to the y position
setLocZ(value)
Sets the z location of the object
- Parameters:
- {number} value
- The value to assign to the z position
setRot(x, y, z)
Sets the rotation of the object
- Parameters:
- {number} x
- The value to assign to the x rotation
- {number} y
- The value to assign to the y rotation
- {number} z
- The value to assign to the z rotation
setRotX(value)
Sets the x rotation of the object
- Parameters:
- {number} value
- The value to assign to the x rotation
setRotY(value)
Sets the y rotation of the object
- Parameters:
- {number} value
- The value to assign to the y rotation
setRotZ(value)
Sets the z rotation of the object
- Parameters:
- {number} value
- The value to assign to the z rotation
setScale(x, y, z)
Sets the scale of the object
- Parameters:
- {number} x
- The value to assign to the x scale
- {number} y
- The value to assign to the y scale
- {number} z
- The value to assign to the z scale
setScaleX(value)
Sets the x scale of the object
- Parameters:
- {number} value
- The value to assign to the x scale
setScaleY(value)
Sets the y scale of the object
- Parameters:
- {number} value
- The value to assign to the y scale
setScaleZ(value)
Sets the z scale of the object
- Parameters:
- {number} value
- The value to assign to the z scale