|
@@ -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.
|
|
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);
|
|
|
|
+----
|