iscenenode
Contents
| Name | Description |
|---|---|
| getang( angle ) | Set the rotation of a scene element. |
| getmaterial( ) | Gets the material of a scene element. |
| getmaterialcount( ) | Gets the number of materials on a scene node. |
| getname( name ) | Get the name of this scene element. |
| getpos( ) | Get the position of a scene element. |
| getscale( ) | Get the scale of this scene element. |
| setDebugDataVisible( ) | Sets the debug flag for this object |
| setmaterial( texture ) | Set the mateiral of a scene element. |
| setmaterialflag( flag , on ) | Sets a flag on the material |
| setname( name ) | Set the name of a scene element. |
| setpos( position ) | Set the position of a scene element. |
| setscale( scale ) | Set the scale of this scene element. |
| setvisible( visible ) | Sets the visibility of this scene element |
getang( angle3d angle )
Set the rotation of a scene element.
Parameters
-
angle (angle3d)
The angle to set this element to
Defined at client/lua_api/scene/igeneric.cpp:67
getmaterial( )
Gets the material of a scene element.
To check if to materials are equal, compare their .texture fields, these hold a light userdata.
Returns
-
The material that was applied to this node
Defined at client/lua_api/scene/igeneric.cpp:84
getmaterialcount( )
Gets the number of materials on a scene node.
Returns
-
The number of materials on this node
Defined at client/lua_api/scene/igeneric.cpp:111
getname( string name )
Get the name of this scene element.
Parameters
-
name (string)
The name to give this scene element.
Defined at client/lua_api/scene/igeneric.cpp:187
getpos( )
Get the position of a scene element.
Returns
-
position The position this element is at
Defined at client/lua_api/scene/igeneric.cpp:23
getscale( )
Get the scale of this scene element.
Returns
-
The scale scale of this element.
Defined at client/lua_api/scene/igeneric.cpp:260
setDebugDataVisible( )
Sets the debug flag for this object
Defined at client/lua_api/scene/igeneric.cpp:275
setmaterial( texture texture )
Set the mateiral of a scene element.
Parameters
-
texture (texture)
The texture to apply to this material
Defined at client/lua_api/scene/igeneric.cpp:144
setmaterialflag( number flag , boolean on )
Sets a flag on the material
Parameters
Defined at client/lua_api/scene/igeneric.cpp:127
setname( string name )
Set the name of a scene element.
Parameters
-
name (string)
The name to give this scene element.
Defined at client/lua_api/scene/igeneric.cpp:169
setpos( vector3d position )
Set the position of a scene element.
Parameters
-
position (vector3d)
The position to set this element to
Defined at client/lua_api/scene/igeneric.cpp:38
setscale( vector3d scale )
Set the scale of this scene element.
Parameters
-
scale (vector3d)
The scale to give this scene element.
Defined at client/lua_api/scene/igeneric.cpp:204
setvisible( boolean visible )
Sets the visibility of this scene element
Parameters
-
visible (boolean)
Sets the visibility for this element
Defined at client/lua_api/scene/igeneric.cpp:222