AB4D Forum

Full Version: How to detect when the user has changed camera angle
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:
[attachment=139]

To this:
[attachment=140]
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)