Visam Posted December 23, 2016 Share Posted December 23, 2016 Hi It is just a comment.... If I need to change ArcRotateCamera position, I have to use method setPosition. If I need to change FreeCamera position, I have to assign a value to the position property. smth like this: camera.position = .... It happens because ArcRotateCamera class has method setPosition, but FreeCamera class does not have same method. But the both classes inherit from TargetCamera. Quote Link to comment Share on other sites More sharing options...
Noyogi Posted December 23, 2016 Share Posted December 23, 2016 For FreeCamera I can camera.position = camp; when camp = new bab vector3 it works but does not work for camp = camesh.position; http://www.babylonjs-playground.com/#WFLKH#19 line 76 works line 75 does not Quote Link to comment Share on other sites More sharing options...
Noyogi Posted December 23, 2016 Share Posted December 23, 2016 my bad, this is what i meant: http://www.babylonjs-playground.com/#WFLKH#20 line 77 works and line 76 does not 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.