.. default-domain:: lua .. highlight:: lua .. currentmodule:: LIDAR LIDAR ===== .. warning:: Deprecated. The LIDAR service will be removed in a future release. Use :meth:`SpaceCenter.raycast_distance` 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. :meth:`SpaceCenter.raycast_distance` casts one ray. This example casts 8 rays below the root part of the active vessel: .. literalinclude:: /scripts/api/lidar/RaycastExample.lua .. include:: /mods.inc