.. default-domain:: py .. highlight:: py .. 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.py The function stream casts every ray in the same physics tick, as a LiDAR does. .. include:: /mods.inc