![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IHeightField graph node interface.
This interface represents a generic height field, which consists of a rectangular data set representing discrete points in the XZ plane with exactly one elevation value at a given XZ coordinate.
Get the constant Graph::INode interface. This method returns a constant pointer to the node's Graph::INode interface, to be able to query common node properties such as active state, visibility or ID.
Murl.Graph.INode GetNodeInterface()
Get the height field's extent along the X axis.
Number GetFieldSizeX()
Get the height field's extent along the Z axis.
Number GetFieldSizeZ()
Get the height field's elevation (Y coordinate) for a given XZ coordinate.
Number GetFieldElevation(Number posX, Number posZ)
posX | The X coordinate to query. |
posZ | The Z coordinate to query. |