Messages |
position | three floats | set the translational component |
orientation | three floats | set the rotational component applied before translation |
size | three floats | set the scaling component |
updateInterval | float | set the time interval to update remote users |
Events |
changed |
Comments |
constructor ygTransform
1 create new pfDCS and set as pfnode
2 create a simple unreliable coordinate network key
3 dont include in documentation
4 dont include in documentation
5 register changed event
destructor ~ygTransform
method reset
1 if net master then set matrix to identity
1.1 reset update interval
1.2 reset last update timer
method message
1 set the translational component
2 set the rotational component applied before translation
3 set the scaling component
4 set the time interval to update remote users
method getMatrix
method getPosition
method getOrientation
method getSize
method setMatrix
method setPosition
method setOrientation
method setSize
method setSize
method app
1 adjust debug display
1.1 if bounding sphere or size has changed then update debug2 if net master
2.1 if update interval has passed then update key
method setTransform
method createDebugNode
1 create cone geoset
2 create axis geoset
method setDebugCoords
1 CONE_LENGTH = sqrt(CONE_RADIUS^2 + CONE_RADIUS^2)/2
2 cone vertices
3 axis vertices