mirror derived from ygSpace | Example | Source | Header |
Messages |
subject | string | add a subject node |
axis | [x | y | z | xy] | set the axis for mirroring |
Comments |
constructor mirror
1 distribute the list of subjects
2 distribute the mirroring axis
destructor ~mirror
method reset
1 reset the list of subjects
method message
1 add a subject node
2 set the axis for mirroring
method preDrawFunc
method postDrawFunc
method setAxis
method app
1 for each user in the world
1.1 if the user is within the space include in mirroring2 if user has left the space then remove them from mirroring
3 for each subject
3.1 get the subject matrix
3.2 get the subject inverse matrix
3.3 construct the mirror matrix
3.4 set the subject matrix
method addSubject
1 create a new DCS for the subject
2 add an instance of the subject under the DCS
3 add the DCS as a child of this node
4 add the subject to the list of subjects