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