Hersir Posted May 31, 2017 Share Posted May 31, 2017 Hi, I used feature that you can pass mesh as target for camera, so camera will move together with it. Playground also older example from different topic. It was working fine but lately I upgraded to git version of babylonjs, and this feature stoped to work. (In some cases it doesn't work at all, sometimes it works if you use animation to change the position of target mesh). If you rotate the camera it will jump to the correct position but it doesn't react on position changes of mesh. Is it bug or something changed in api? Quote Link to comment Share on other sites More sharing options...
Nesh108 Posted May 31, 2017 Share Posted May 31, 2017 @Hersir known bug, weirdly still there. Here is the version with a workaround: http://www.babylonjs-playground.com/#FUJJ6R#P2 Tagging @Deltakosh to see if the fix is perhaps sitting on a PR or if the problem is something else. Quote Link to comment Share on other sites More sharing options...
Hersir Posted May 31, 2017 Author Share Posted May 31, 2017 @Nesh108 Thanx for info Nesh108 1 Quote Link to comment Share on other sites More sharing options...
adam Posted May 31, 2017 Share Posted May 31, 2017 You have to use camera.setTarget (line 52) to get the PG to act the way it did in 2.5: http://www.babylonjs-playground.com/index.html#FUJJ6R#3 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.