Murl Engine Lua Addon API  Version 1.0 beta
Murl.Graph.IDeformable

The IDeformable property interface.

This interface provides a generic way to deform e.g. a geometry over time.

Animation controllers may call the SetDeformTimeAndFactor() method when time keys are present in a given Resource::IAnimation.


Table members

Methods


GetNumberOfDeformStages()

Get the number of deform stages present.

Integer GetNumberOfDeformStages()

Returns
Integer The number of stages.

SetDeformTimeAndFactor(stageIndex, time, factor)

Set the time and blend factor for a given stage.

Boolean SetDeformTimeAndFactor(Integer stageIndex, Number time, Number factor)

Parameters
stageIndexThe stage index,
timeThe deform time to set.
factorThe deform factor to set.
Returns
Boolean true if successful.

GetDeformTime(stageIndex)

Get the deform time set for a given stage.

Number GetDeformTime(Integer stageIndex)

Parameters
stageIndexThe stage index,
Returns
Number The deform time.

GetDeformFactor(stageIndex)

Get the deform factor set for a given stage.

Number GetDeformFactor(Integer stageIndex)

Parameters
stageIndexThe stage index,
Returns
Number The deform factor.