.. role:: ts-api-decorator

##################
CameraWalkOperator
##################

.. js:module:: Operators.Camera
   :noindex:

.. container:: ts-api-section

   .. js:class:: CameraWalkOperator



.. container:: api-index-section

   .. rubric:: Methods

   .. rst-class:: api-index-list-item api-kind-method api-parent-kind-class

   * :js:meth:`~Operators.Camera.CameraWalkOperator.addMapping`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.clearMapping`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.disableBimMode`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.enableBimMode`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.getBimDoorConfig`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.getBimFloorConfig`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.getBimModeEnabled`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.getBimWallConfig`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.getElevationSpeed`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.getMajorAxis`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.getRotationSpeed`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.getTilt`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.getViewAngle`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.getWalkActive`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.getWalkSpeed`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.getZoomSpeed`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.isBimModeEnabled`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.resetDefaultWalkSpeeds`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.rotateLeft`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.rotateRight`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.setBimDoorConfig`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.setBimFloorConfig`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.setBimWallConfig`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.setElevationSpeed`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.setMapping`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.setRotationSpeed`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.setTilt`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.setViewAngle`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.setWalkSpeed`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.setZoomSpeed`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.tiltDown`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.tiltUp`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.toggleBimMode`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.walkBackward`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.walkBackwardWithCollision`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.walkDown`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.walkForward`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.walkForwardWithCollision`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.walkLeft`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.walkLeftWithCollision`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.walkRight`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.walkRightWithCollision`
   * :js:meth:`~Operators.Camera.CameraWalkOperator.walkUp`





------------

Methods
=======

.. rst-class:: ts-api-section

addMapping
----------

.. js:method:: CameraWalkOperator.addMapping( button, modifier)

   :param button: None
   :type button: Button
   :param modifier: None
   :type modifier: KeyModifiers


   Adds a button and key modifier mapping for the operator. If no mapping is provided, all combinations are considered valid.
   All mappings require a mouse button, but a key modifier is optional.


   :rtype: void

.. rst-class:: ts-api-section

clearMapping
------------

.. js:method:: CameraWalkOperator.clearMapping()



   Clears any button and key modifier mappings for the operator.


   :rtype: void

.. rst-class:: ts-api-section

disableBimMode
--------------

.. js:method:: CameraWalkOperator.disableBimMode()



   Disables BIM mode, which includes collision detection


   :rtype: Promise <void>

.. rst-class:: ts-api-section

enableBimMode
-------------

.. js:method:: CameraWalkOperator.enableBimMode()



   Enables BIM mode, which includes collision detection


   :rtype: Promise <void>

.. rst-class:: ts-api-section

getBimDoorConfig
----------------

.. js:method:: CameraWalkOperator.getBimDoorConfig()



   Gets the door distance config used by BIM mode.
   See also: [[enableBimMode]].


   :rtype: DoorConfig

.. rst-class:: ts-api-section

getBimFloorConfig
-----------------

.. js:method:: CameraWalkOperator.getBimFloorConfig()



   Gets the floor distance config used by BIM mode.
   See also: [[enableBimMode]].


   :rtype: FloorConfig

.. rst-class:: ts-api-section

getBimModeEnabled
-----------------

.. js:method:: CameraWalkOperator.getBimModeEnabled()



   Returns true if BIM mode is currently active


   :rtype: boolean

.. rst-class:: ts-api-section

getBimWallConfig
----------------

.. js:method:: CameraWalkOperator.getBimWallConfig()



   Gets the wall distance config used by BIM mode.
   See also: [[enableBimMode]].


   :rtype: WallConfig

.. rst-class:: ts-api-section

getElevationSpeed
-----------------

.. js:method:: CameraWalkOperator.getElevationSpeed()



   Gets the elevation speed for moving the camera up and down.


   :rtype: number

.. rst-class:: ts-api-section

getMajorAxis
------------

.. js:method:: CameraWalkOperator.getMajorAxis()



   Get major axis


   :rtype: Axis

.. rst-class:: ts-api-section

getRotationSpeed
----------------

.. js:method:: CameraWalkOperator.getRotationSpeed()



   Gets the rotation speed for tilt and rotate.


   :rtype: number

.. rst-class:: ts-api-section

getTilt
-------

.. js:method:: CameraWalkOperator.getTilt()



   Gets the tilt value.


   :rtype: number

.. rst-class:: ts-api-section

getViewAngle
------------

.. js:method:: CameraWalkOperator.getViewAngle()



   Gets the view angle.


   :rtype: number

.. rst-class:: ts-api-section

getWalkActive
-------------

.. js:method:: CameraWalkOperator.getWalkActive()



   Returns true if walking is currently active


   :rtype: boolean

.. rst-class:: ts-api-section

getWalkSpeed
------------

.. js:method:: CameraWalkOperator.getWalkSpeed()



   Gets the walkSpeed for walking forward, backwards, left, and right.


   :rtype: number

.. rst-class:: ts-api-section

getZoomSpeed
------------

.. js:method:: CameraWalkOperator.getZoomSpeed()



   Gets the speed used when walking with the mouse scroll wheel.


   :rtype: number

.. rst-class:: ts-api-section

isBimModeEnabled
----------------

.. js:method:: CameraWalkOperator.isBimModeEnabled()



   :rtype: boolean

.. rst-class:: ts-api-section

resetDefaultWalkSpeeds
----------------------

.. js:method:: CameraWalkOperator.resetDefaultWalkSpeeds()



   Sets the walk, rotate, and mouse look speeds to the default values.


   :rtype: Promise <void>

.. rst-class:: ts-api-section

rotateLeft
----------

.. js:method:: CameraWalkOperator.rotateLeft( degrees)

   :param degrees: None
   :type degrees: number


   :rtype: void

.. rst-class:: ts-api-section

rotateRight
-----------

.. js:method:: CameraWalkOperator.rotateRight( degrees)

   :param degrees: None
   :type degrees: number


   :rtype: void

.. rst-class:: ts-api-section

setBimDoorConfig
----------------

.. js:method:: CameraWalkOperator.setBimDoorConfig( doorConfig)

   :param doorConfig: None
   :type doorConfig: DoorConfig


   Sets the door distance config used by BIM mode.


   :rtype: void

.. rst-class:: ts-api-section

setBimFloorConfig
-----------------

.. js:method:: CameraWalkOperator.setBimFloorConfig( floorConfig)

   :param floorConfig: None
   :type floorConfig: FloorConfig


   Sets the floor distance config used by BIM mode.
   See also: [[enableBimMode]].


   :rtype: void

.. rst-class:: ts-api-section

setBimWallConfig
----------------

.. js:method:: CameraWalkOperator.setBimWallConfig( wallConfig)

   :param wallConfig: None
   :type wallConfig: WallConfig


   Sets the wall distance config used by BIM mode.
   See also: [[enableBimMode]].


   :rtype: void

.. rst-class:: ts-api-section

setElevationSpeed
-----------------

.. js:method:: CameraWalkOperator.setElevationSpeed( elevationSpeed)

   :param elevationSpeed: The camera will move by elevationSpeed per second.
   :type elevationSpeed: number


   Sets the elevation speed for moving the camera up and down.


   :rtype: void

.. rst-class:: ts-api-section

setMapping
----------

.. js:method:: CameraWalkOperator.setMapping( button, modifier)

   :param button: None
   :type button: Button
   :param modifier: None
   :type modifier: KeyModifiers


   Sets the button and key modifier mapping for the operator.


   :rtype: void

.. rst-class:: ts-api-section

setRotationSpeed
----------------

.. js:method:: CameraWalkOperator.setRotationSpeed( rotationSpeed)

   :param rotationSpeed: The camera will rotate by rotationSpeed degrees per second.
   :type rotationSpeed: number


   Sets the rotation speed for tilt and rotate.


   :rtype: void

.. rst-class:: ts-api-section

setTilt
-------

.. js:method:: CameraWalkOperator.setTilt( tilt)

   :param tilt: None
   :type tilt: number


   Sets the tilt value. Values must be between -45 and 45 degrees.


   :rtype: void

.. rst-class:: ts-api-section

setViewAngle
------------

.. js:method:: CameraWalkOperator.setViewAngle( degrees)

   :param degrees: None
   :type degrees: number


   Sets the view angle. Values must be between 30 and 150 degrees.


   :rtype: void

.. rst-class:: ts-api-section

setWalkSpeed
------------

.. js:method:: CameraWalkOperator.setWalkSpeed( walkSpeed)

   :param walkSpeed: The camera will move by walkSpeed per second.
   :type walkSpeed: number


   Sets the walkSpeed for walking forward, backwards, left, and right.


   :rtype: void

.. rst-class:: ts-api-section

setZoomSpeed
------------

.. js:method:: CameraWalkOperator.setZoomSpeed( zoomSpeed)

   :param zoomSpeed: distance for walking with the mouse scroll wheel.
   :type zoomSpeed: number


   Sets the speed to walk when using the mouse scroll wheel.


   :rtype: void

.. rst-class:: ts-api-section

tiltDown
--------

.. js:method:: CameraWalkOperator.tiltDown( degrees)

   :param degrees: None
   :type degrees: number


   :rtype: void

.. rst-class:: ts-api-section

tiltUp
------

.. js:method:: CameraWalkOperator.tiltUp( degrees)

   :param degrees: None
   :type degrees: number


   :rtype: void

.. rst-class:: ts-api-section

toggleBimMode
-------------

.. js:method:: CameraWalkOperator.toggleBimMode()



   Toggles BIM mode, deactivating it if it's activated and activating it if it's deactivated


   :rtype: Promise <void>

.. rst-class:: ts-api-section

walkBackward
------------

.. js:method:: CameraWalkOperator.walkBackward( walkDistance)

   :param walkDistance: None
   :type walkDistance: number


   :rtype: void

.. rst-class:: ts-api-section

walkBackwardWithCollision
-------------------------

.. js:method:: CameraWalkOperator.walkBackwardWithCollision( walkDistance)

   :param walkDistance: None
   :type walkDistance: number


   :rtype: Promise <void>

.. rst-class:: ts-api-section

walkDown
--------

.. js:method:: CameraWalkOperator.walkDown( walkDistance)

   :param walkDistance: None
   :type walkDistance: number


   :rtype: void

.. rst-class:: ts-api-section

walkForward
-----------

.. js:method:: CameraWalkOperator.walkForward( walkDistance)

   :param walkDistance: None
   :type walkDistance: number


   :rtype: void

.. rst-class:: ts-api-section

walkForwardWithCollision
------------------------

.. js:method:: CameraWalkOperator.walkForwardWithCollision( walkDistance)

   :param walkDistance: None
   :type walkDistance: number


   :rtype: Promise <void>

.. rst-class:: ts-api-section

walkLeft
--------

.. js:method:: CameraWalkOperator.walkLeft( walkDistance)

   :param walkDistance: None
   :type walkDistance: number


   :rtype: void

.. rst-class:: ts-api-section

walkLeftWithCollision
---------------------

.. js:method:: CameraWalkOperator.walkLeftWithCollision( walkDistance)

   :param walkDistance: None
   :type walkDistance: number


   :rtype: Promise <void>

.. rst-class:: ts-api-section

walkRight
---------

.. js:method:: CameraWalkOperator.walkRight( walkDistance)

   :param walkDistance: None
   :type walkDistance: number


   :rtype: void

.. rst-class:: ts-api-section

walkRightWithCollision
----------------------

.. js:method:: CameraWalkOperator.walkRightWithCollision( walkDistance)

   :param walkDistance: None
   :type walkDistance: number


   :rtype: Promise <void>

.. rst-class:: ts-api-section

walkUp
------

.. js:method:: CameraWalkOperator.walkUp( walkDistance)

   :param walkDistance: None
   :type walkDistance: number


   :rtype: void

