AB4D Forum
How to detect when the user has changed camera angle - Printable Version

+- AB4D Forum (https://forum.ab4d.com)
+-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4)
+--- Forum: Ab3d.PowerToys (https://forum.ab4d.com/forumdisplay.php?fid=9)
+--- Thread: How to detect when the user has changed camera angle (/showthread.php?tid=4157)



How to detect when the user has changed camera angle - jasza - 12-04-2019

what event do i use on "targetPositionCamera" to detect when the user has changed the camera angle/distance? 

I want to save the settings so that i can set the same camera angle later when i automatically zoom into an object

I need to detect when the user has changed the view from this:
   

To this:
   


RE: How to detect when the user has changed camera angle - abenedik - 12-04-2019

There is a CameraChanged event that is triggered each time camera is changed. There you can check the current camera angles and distance with the previous values (in the previous call to this event handler)