RobotWebTools / ros3djs

3D Visualization Library for use with the ROS JavaScript Libraries
https://robotwebtools.github.io/ros3djs
Other
358 stars 215 forks source link

Support panning along the scene's XY plane #271

Open J-Rojas opened 5 years ago

J-Rojas commented 5 years ago

The panning behaviour is currently implemented to move the user along the camera's view plane. It would be more useful to pan along the scene's XY plane. This is how RVIZ implements panning and Three.js also has support using 'OrbitControls.screenSpacePanning = false'.

arcoyk commented 4 years ago

@J-Rojas Not sure 'OrbitControls.screenSpacePanning = false' is a perfect solution. I assume Google Earth-like controls are expected as seen in here in stackoverflow. I'll take a look at it and possibly request a pull later.

J-Rojas commented 4 years ago

It works great for me. Feel free to try it out and comment.