![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IScalable property interface.
This interface provides setting and retrieving of a scale factor, either as a uniform value or individual values for scaling along the X, Y and Z axes.
Animation controllers may call the SetScaleFactor() method when scaling keys are present in a given Resource::IAnimation.
Set a uniform scaling factor for all three axes.
Boolean SetScaleFactor(Number s)
s | The scale factor for the X, Y and Z axes. |
Set individual scaling factors for the X, Y and Z axes.
Boolean SetScaleFactor(Number x, Number y, Number z)
x | The scale factor for the X axis. |
y | The scale factor for the Y axis. |
z | The scale factor for the Z axis. |
Set individual scaling factors for the X, Y and Z axes.
Boolean SetScaleFactor(Murl.Math.Vector scaleFactor)
scaleFactor | A vector containing individual scale factors. |
Set the scaling factor for the X axis only.
Boolean SetScaleFactorX(Number x)
x | The scale factor for the X axis. |
Set the scaling factor for the Y axis only.
Boolean SetScaleFactorY(Number y)
y | The scale factor for the Y axis. |
Set the scaling factor for the Z axis only.
Boolean SetScaleFactorZ(Number z)
z | The scale factor for the Z axis. |
Get the scaling factors for the X, Y and Z axes.
Murl.Math.Vector GetScaleFactor()
Get the scaling factor for the X axis.
Number GetScaleFactorX()
Get the scaling factor for the Y axis.
Number GetScaleFactorY()
Get the scaling factor for the Z axis.
Number GetScaleFactorZ()