Michuspo Posted August 7, 2017 Share Posted August 7, 2017 Hi, I'm trying to detect when a Camera (ArcRotateCamera) is changing. Is there any event like OnChange,...? I was trying to find it in the documentation without success. Thanks, Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 7, 2017 Share Posted August 7, 2017 If by changing you mean: alpha or beta or radius were updated, no there is no simple way to do it But I also think it is a great idea so just for you I added two new observables on cameras: * onProjectionMatrixChangedObservable * onViewMatrixChangedObservable Quote Link to comment Share on other sites More sharing options...
Michuspo Posted August 8, 2017 Author Share Posted August 8, 2017 Hi Deltakosh, Thanks for adding the observables! Is there a way to use them? Thanks, Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 8, 2017 Share Posted August 8, 2017 Is there a way to use them? Funny question! just use them (http://doc.babylonjs.com/overviews/observables) Let me be more specific: https://www.babylonjs-playground.com/#JCLNJG Quote Link to comment Share on other sites More sharing options...
Michuspo Posted August 10, 2017 Author Share Posted August 10, 2017 Deltakosh, I thought it was necessary to build the project before to use them! For that reason, I asked how I can use them! Thanks again! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.