RyanONeill1970 Posted December 2, 2018 Share Posted December 2, 2018 (edited) I have a particle system and some walls ( https://www.babylonjs-playground.com/#8PY6X5#15 ), if you move the mouse around you can see the last mesh touched is tracked by using a red sphere. There is a reason for this, I'm trying to zoom in to the last place that the mouse was so it zooms like a slippy map (Google, Bing, Yahoo maps etc.). A slippy map will zoom on a 2d surface to where the cursor is (for an example, see Google maps) so that it is more intuitive and the origin of the zoom is from that point. I've removed the ArcRotateCameraMouseWheelInput so I can use my own mouse wheel tracking. The walls should remain static with only the particle system expanding. Two questions; I think the zoom is done, but I can't get my head around the next bit which is to translate the SPS mesh step by step as the zoom happens via the last mouse position (mouseSphere in code). I've left a TODO marker in the code where I think this should be handled. The mouse tracking drops frames compared to the example I copied it from ( https://www.babylonjs-playground.com/#2FPT1A#68 ) which was far more complex. Am I doing something dumb? If you want to know what this is for, it's a data visualisation and the walls will consist of labelled axes. Hopefully that makes sense. Regards Ryan Edited December 2, 2018 by RyanONeill1970 Fix version of playground code. Quote Link to comment Share on other sites More sharing options...
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.