Rail3D*


 

Node



On this page…

  1. 1 Node

1 Node

An object representing a track node.

node GetConnectedNode(int a,int b);

Returns a node object for the connected node specified, or null if the node does not exist. Term a can be 0 or 1 representing the two directions from the node, and b can 0 to 3 where 0 is the default route and 1 to 3 represent other possible links from the node.

float GetAlpha(void);

returns the alpha angle of the node.

void SetAlpha(float a)

sets the alpha angle of the node.

float GetX(void);
float GetY(void);
float GetZ(void);

returns X/Y/Z positions of node.

SetX(float);
SetY(float);
SetZ(float);
SetXY(float,float);

sets X/Y/Z positions of node.



import