Raycast system I copied from Daniel Shiffman's code, I modified and put ray on movable object (I presume this as robot car). This project is my pending project to learn how robot car can do room mapping with ultrasonic sensor, and this project objectives is to simulate that with the help of P5.js.
What To Do:
Create Robot Car MovementPut Ray cast sensor in Robot carMake random wall to be detectedCreate a mark on detected position- Memory Optimization of the marked position
- Make a line prediction on a group of marks
- ...
- ...
2D Ray Casting - Daniel Shiffman