Re: ScratchHome2 - need some help
by Puybaret » Mon Jun 27, 2022 6:40 pm
You'll need two listeners:
- a first property change listener on home instance to follow the changes of camera (the property name is simply [font=courier new]CAMERA[/font])
- if the new camera is an instance of [font=courier new]ObserverCamera[/font] (the class used for the virtual visitor), add a property change listener on the camera to follow the
properties [font=courier new]X Y Z[/font].
Don't forget to remove the first listener when not needed to avoid memory leaks.
There's no SVG file for the virtual visitor. Its drawing is hard coded in
PlanComponent class.