|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: ScratchHome2 - need some help » » » » Post: Re: ScratchHome2 - need some help |
Print at Dec 21, 2025, 5:10:40 AM |
| Posted by Puybaret at Jun 27, 2022, 6:40:05 PM |
|
Re: ScratchHome2 - need some help You'll need two listeners: - a first property change listener on home instance to follow the changes of camera (the property name is simply CAMERA) - if the new camera is an instance of ObserverCamera (the class used for the virtual visitor), add a property change listener on the camera to follow the properties X Y Z. 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. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Dec 21, 2025, 5:10:40 AM |