Search the Community
Showing results for tags 'settarget'.
-
Hi guys, i notised that if you use arcRotateCamera and setTarget(mesh) you're unable to unlock the target, e.g setTarget(mesh.position.clone()); without updating the mesh's position first, i'm using 2.5, but it is also available in the PG; // Press any key to setTarget(sphere), press again to setTarget(sphere.position.clone()), try to pan using the left mouse button, you're still stuck, uncomment line 33 ( sphere.position.x += 0.00000001;), do it again and now you can pan.. Example; http://www.babylonjs-playground.com/#WHMIR#0 Fix has been merged, thanks @Deltakosh https://github.com/BabylonJS/Babylon.js/pull/1740 http://www.babylonjs-playground.com/#WHMIR#6
- 3 replies
-
- arcrotatecamera
- panning
-
(and 1 more)
Tagged with:
-
Hi there ! I have a small question, I am looking for the best way to make a mesh match the camera clipping plane. The only issue I am getting is that the camera is always zooming/unzooming because the mesh never perfectly fits the clipping plane... I made a simple Playground scene to show the issue : http://www.babylonjs-playground.com/#AZZNI You can increase the zoomingSteps value if you can't see the issue. Thanks in advance for your help, I will keep you informed if I find a solution.