jps0611 Posted January 10, 2018 Share Posted January 10, 2018 Howdy, I'm struggling to conceptualize how I would tackle solving the following task. Imagine you have a scene as displayed in the attachment. I would like to bind scroll to moving the camera along a predefined path. Breaking it down into components...how do I: Attach a Camera to a predefined path? Allow a user to move the camera along that path? Any suggestions that might point me in the right direction? @Deltakosh Thanks, JPS edzis 1 Quote Link to comment Share on other sites More sharing options...
mr_pinc Posted January 10, 2018 Share Posted January 10, 2018 I would say the easiest way is to create a spline in your 3D editor and add an animation to the camera to follow that spline. When you are happy with the way it looks export it and get it to play in Babylon. The when in your scroll wheel handler you simply set the keyframe on the existing animation using the 'goToFrame()' method. The frame would be the current currentFrame + (totalFrames * speed of movement) . Quote Link to comment Share on other sites More sharing options...
jps0611 Posted January 10, 2018 Author Share Posted January 10, 2018 Ah! Great suggestion...let me roll with that for a bit. Thanks so much! JPS 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.