Zuzuk Posted December 3, 2018 Share Posted December 3, 2018 Hi Can I somehow make distance for LODs to count from the target position of ArcRotateCamera? I'm making sort of map application and when I tilt the camera down, visible meshes on the map is under the camera and I want them to be where camera is looking Quote Link to comment Share on other sites More sharing options...
Guest Posted December 3, 2018 Share Posted December 3, 2018 Hey! this is the function you would like to change: https://github.com/BabylonJS/Babylon.js/blob/405068971daa526cf42d19eb80b7c8e3cb2dd8a4/src/Mesh/babylon.mesh.ts#L513 Precisely, the distance is evaluated here: https://github.com/BabylonJS/Babylon.js/blob/405068971daa526cf42d19eb80b7c8e3cb2dd8a4/src/Mesh/babylon.mesh.ts#L528 Quote Link to comment Share on other sites More sharing options...
Zuzuk Posted December 4, 2018 Author Share Posted December 4, 2018 20 hours ago, Deltakosh said: Hey! this is the function you would like to change: https://github.com/BabylonJS/Babylon.js/blob/405068971daa526cf42d19eb80b7c8e3cb2dd8a4/src/Mesh/babylon.mesh.ts#L513 Precisely, the distance is evaluated here: https://github.com/BabylonJS/Babylon.js/blob/405068971daa526cf42d19eb80b7c8e3cb2dd8a4/src/Mesh/babylon.mesh.ts#L528 Thanks a lot! Everything works perfect GameMonetize and Sebavan 2 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.