瀏覽代碼

Add tips for disabling of camera rotation/movement (#124)

I faced the necessity to disable rotation and movement and can't find a solution on wiki, but jmonkey hub gives me an answer, so I propose to include this information to wiki
ArtemKharin 4 年之前
父節點
當前提交
ce8812384c
共有 1 個文件被更改,包括 11 次插入0 次删除
  1. 11 0
      docs/modules/core/pages/renderer/camera.adoc

+ 11 - 0
docs/modules/core/pages/renderer/camera.adoc

@@ -168,3 +168,14 @@ a|chaseCam.setDefaultHorizontalRotation(-FastMath.PI/2);
 a|The default horizontal rotation angle of the camera around the target at the start of the application.
 
 |===
+
+To disable rotation and zooming of chase camera by mouse you can use following methods.
+[source,java]
+----
+//to disable rotation
+inputManager.deleteMapping(CameraInput.CHASECAM_TOGGLEROTATE);
+//to disable zoom out
+inputManager.deleteMapping(CameraInput.CHASECAM_ZOOMOUT);
+//to disable zoom in
+inputManager.deleteMapping(CameraInput.CHASECAM_ZOOMIN);
+----