I have a sphere that I made possible to rotate. What I would like to do is to make that rotate affecting another object to rotate exact the same. If I rotate left the other object should rotate left and vice versa.
#VRML V2.0 utf8
DEF main_SS SphereSensor {}
DEF a_TR Transform {
translation -2 0 0
children [
Shape {
geometry Sphere {}
appearance Appearance {
material Material {}
}
}
]
}
DEF b_TR Transform {
translation 2 0 0
children Shape {
geometry Box {}
appearance Appearance {
material Material {}
}
}
}
ROUTE main_SS.rotation_changed TO a_TR.rotation
ROUTE a_TR.rotation TO b_TR.rotation