Class threedee.RollUpdater
Extends
.
The roll updater rotates a node around the Z axis.
Defined in: RollUpdater.js.
Constructor Attributes | Constructor Name and Description |
---|---|
threedee.RollUpdater(angle)
Constructs a new roll updater.
|
Method Attributes | Method Name and Description |
---|---|
getAngle()
Returns the current angle.
|
|
setAngle(angle)
Sets the angle.
|
|
update(node, delta)
|
Class Detail
threedee.RollUpdater(angle)
Constructs a new roll updater.
- Parameters:
- {number} angle
- The angle the node should be rotated around the Z axis per second. Measured in clock-wise RAD.
Method Detail
{number}
getAngle()
Returns the current angle.
- Returns:
- {number} The angle the node is rotated around the X axis per second. Measured in clock-wise RAD.
setAngle(angle)
Sets the angle.
- Parameters:
- {number} angle
- The angle the node should be rotated around the X axis per second. Measured in clock-wise RAD.
update(node, delta)
- Parameters:
- {!threedee.SceneNode} node
- {number} delta