- new (string name,[boolean drawable],[float x,y,z])
- returns: ([scenenode s3d])
creates a new scenenode with given position as local pos
- delete (scenenode,[boolean withchildren])
- returns: ()
removes the Node from the SceneTree and deletes it. withchildren defaults to false
- deleteall ()
- returns: ()
- get (string name)
- returns: ([scenenode s3d])
returns a node
- getnextname (scenenode s3d)
- returns: (scenenode s3d)
returns a node within same namegroup of given node
- getroot ()
- returns: (scenenode s3d)
returns the root node. The root node cant be deleted nor modified
- link (scenenode s3d,boolean withchildren,scenenode parent)
- returns: ()
links s3d 'withchildren' to parent/root
- localmatrix (scenenode s3d,[matrix16])
- returns: ([matrix16])
updates node's local matrix or returns it
- localpos (scenenode s3d,[float x,y,z])
- returns: (float x,y,z)
updates node's local position or returns it
- localrotaxis (scenenode s3d,[float Xx,Xy,Xz, Yx,Yy,Yz, Zx,Zy,Zz])
- returns: ([float Xx,Xy,Xz, Yx,Yy,Yz, Zx,Zy,Zz])
returns or sets local rotation axis, make sure they make a orthogonal basis.
- localrotdeg (scenenode s3d,[float x,y,z])
- returns: (float x,y,z)
updates node's local rotation or returns it in degrees
- localrotrad (scenenode s3d,[float x,y,z])
- returns: (float x,y,z)
updates node's local rotation or returns it in radians
- terrain (scenenode,[terrain]/[l3dterrain])
- returns: (terrain)
returns or sets scenenode as terrain. Children will be put on terrain with local matrix Z as offset in height.
- transform (scenenode self,float x,y,z)
- returns: (float x,y,z)
transforms x,y,z with final matrix of the node into world coordinates
- updateall ()
- returns: ()
done automatically before rendering is done, but if you need uptodate world data, right after setting your
scenenodes, call this function.
- vistestbbox (scenenode self, [float minX,minY,minZ,maxX,maxY,maxZ])
- returns: ([float minX,minY,minZ,maxX,maxY,maxZ])
sets/gets visibility testing boundingbox when scenenode is drawable
- worldmatrix (scenenode s3d)
- returns: ([matrix16])
returns node's world matrix
- worldpos (scenenode s3d)
- returns: (float x,y,z)
returns world position
- worldrotaxis (scenenode s3d,[float Xx,Xy,Xz, Yx,Yy,Yz, Zx,Zy,Zz])
- returns: ([float Xx,Xy,Xz, Yx,Yy,Yz, Zx,Zy,Zz])
returns or sets last world rotation axis, make sure they make a orthogonal basis.
- worldrotdeg (scenenode s3d)
- returns: (float x,y,z)
returns world rotation (degrees)
- worldrotrad (scenenode s3d)
- returns: (float x,y,z)
returns world rotation (radians)