SelfDrivingSimTest
Prototyping a LiDAR Scanner in Unity3D
Install / Use
/learn @Angelo1211/SelfDrivingSimTestREADME
LiDAR Scanner modeling in Unity3D
This project aims to model a liDAR scanner in a small test city environment using Unity3D as renderer and physics engine. It first reads geometry data from the environment using collision raycasting and returns an impact point array for each scan. The scan rate is currently limited by Unity's physics engine refresh rate and the maximum mesh size of 65k vertices. Before running the simulation the rotation rate of the scanner can be set which allows for a trade off between angular resolution and refresh rate. The results are rendered using a vertex shader that draws each collision point as a vertex and colors it based on the distance from origin.
The default Unity vehicle controller has been attached to the car and can be used to model the effect of a moving vehicle and the sensor, but will cause significant FPS drops. I recommend you reduce the physics deltaTime to a value around (0.04-0.01) to get above 30fps.
Setting up the Project
This repo includes the project as-is. Including many default assets that were not used in the final version. Download and copy all assets to a new Unity project and make sure to modify the fixedDeltaTime value in the editor to get a more defined point cloud. V-sync should be disabled for better performance.
~Pictures taken with a fixed timestep of 0.0002 and rotation frequency at 5hz to 50hz.
~Scanner object located within Car object hierarchy.
Prerequisites
What things you'll need to install the software:
~Unity3D (Version 2017.1.0f3 (64-bit) was used, not checked for previous versions)
Sample Images & GIF's
I also included some images for reference but since vertices are represented as single pixels image compression has made it hard to see them. Download the images for better results or run the project.

Authors
- Angel Ortiz - Project Lead - GitHUB
References
- http://developer.download.nvidia.com/CgTutorial/cg_tutorial_frontmatter.html
- http://velodynelidar.com/hdl-64e.html
- http://catlikecoding.com/unity/tutorials/
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
