croustibat Posted August 5, 2015 Share Posted August 5, 2015 Hello Babylon devs,I'm new to babylon, I used to develop on the Unity framework, but my need to build good webgl apps led me to focus on Babylon js. My experience on html5 and JS is quite low, though. So, here is my need:I want to make a camera rotate around a target with a mouse drag (let's say button 0) witch is exactly what arc camera does.I want my camera to translate (both camera and target) on an horizontal plane while dragging the mouse (let's say button 2)I want all the movements to be smoothed What I would do using Unity:I would parent the camera to a node called 'target'Dragging mouse button 0->rotate the target nodeDragging mouse button 2->translate the target nodeSmoothing could be done by rotating and translating a node called 'target command' instead of 'target', and every frame make rotation and translation of 'target' interpolated values between the 'target' values and the 'target command' ones. My questions:Is this design compatible with babylon js paradigms?Is there a most straight forward way to do that such as customizing the ArcCamera?What is the better way to get the mouse drag input? 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.