ziguri Posted April 13, 2018 Share Posted April 13, 2018 Hi, 1) Is there a way to react on a position/rotation change of the camera? 2) How do i get the position and or the rotation of the camera? What i wanna do: I wanna change the position and/or rotation of another mesh in the scene every time the camera is changed. The rotation of the other mesh is depended of the camera rotation. Thx in advance Quote Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2018 Share Posted April 13, 2018 Hey! 1/ You can use camera.onViewMatrixChangedObservable 2/ Camera.position and camera.rotation ziguri 1 Quote Link to comment Share on other sites More sharing options...
ziguri Posted April 16, 2018 Author Share Posted April 16, 2018 Hey @Deltakosh Thanks for implementing the camera.onViewMatrixChangedObservable. That's exactly what i was looking for. Issue solved. GameMonetize 1 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.