.. default-domain:: js .. highlight:: js .. module:: LIDAR :no-index: LIDAR ===== .. warning:: Deprecated. The LIDAR service will be removed in a future release. Use :func:`SpaceCenter.raycastDistance` instead. Provides functionality to interact with the `LiDAR`_ mod. .. toctree:: :includehidden: :maxdepth: 1 lidar/lidar lidar/laser LiDAR Replacement ----------------- A LiDAR casts a fan of rays from its part. :func:`SpaceCenter.raycastDistance` casts one ray. This example casts 8 rays below the root part of the active vessel: .. literalinclude:: /scripts/api/lidar/RaycastExample.js .. include:: /mods.inc