My second version of the Lidar. In the first version I sent out a raycast and if it detected something I deleted it and spawned a dot. In this new version I send out the dots directly, I see if they are colliding with something, and if they are then I let them go forward at 1/15th of the speed to make sure they are in the object. Once that timer is up I push them out of the object until they aren't touching it anymore. That makes sure it is more accurate at providing a picture of what you are looking at.

Leave a comment

Log in with itch.io to leave a comment.