satguru Posted January 17, 2016 Share Posted January 17, 2016 I have an ArcRotateCamera, a box and a sphere. As I rotate the camera I want the sphere to be at always a fixed distance from the camera and between the camera and the box , (that is on a line joining the camera and the box). In other words it should look like the sphere is stuck to the box. Every render cycle I calculate the position of the sphere based on the camera and box position and set the position of the sphere to that. But for some reason there is a lag between the movement of the camera and the sphere. This is due to the camera inertia. If I set the inertia to zero the lag decreases considerably but there is still some. Here is an example http://www.babylonjs-playground.com/#1Z1Q0D#1 Any idea how i can prevent the lag? Regards Satguru 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.