virken Posted October 26, 2018 Share Posted October 26, 2018 HI - sure appreciate a hand in figuring out how to constrain an object's movement during mouse drag. I'm trying to get the sphere to follow the contour of planes as I drag it across the flat and up the ramp (and vice-versa) - see photos below... Currently it doesn't work in this playground - the sphere drags right through the ramp. Here's the code in the playground - https://www.babylonjs-playground.com/#9UFEBE#15 If better to create a single mesh rather than two intersecting meshes, please let me know. Many thanks ? 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.