Search the Community
Showing results for tags 'arcrotationcamera'.
-
So I have a ArcRotationCamera that is fixed on a target sphere. When I click a different sphere, I would like to animate the camera to move to and zoom in on the new target. Unfortunately I haven't been able figure out how to smoothly animate ArcRotateCamera switching to a new target like that, so my solution so far has been to switch to a FreeCamera, which I can then animate to the new target, and afterwards switch back to the ArcRotateCamera on the new position. Unfortunately the perspective is bugging out and is very janky to say the least. Basically the camera should turn towards the targeted sphere like the box does in this example: https://www.babylonjs-playground.com/#UMQ4UR#2 It seems like something that should be so simple to do, but I've been stumbling around this problem for a couple of days, and this is the best I've come up with so far: http://www.babylonjs-playground.com/#WG9OY#28 Anyone who knows a proper way to solve this problem?
- 5 replies
-
- freecamera
- animation
-
(and 1 more)
Tagged with:
-
Hi folks, I've made a little playground here http://www.babylonjs-playground.com/#5QBZT0, which is based on the drag&drop example. I changed the camera behavior a little bit: when dragging the ground, the camera is actually the one that moves along the XZ plane. The problem is that the movement is not smooth, it stumbles. Does anyone know how to fix it? Also, how could I add some inertia to the dragging movement? Thanks a lot!
- 3 replies
-
- camera
- arcrotationcamera
-
(and 1 more)
Tagged with: