10-16-2022, 01:01 PM
OK I worked up a demo of bouncing a circle around the insides of polygons.
I am not using point for collision detection but actual code that checks line (segment) intersections with circles.
I use regular polygons about a central point for easy normal line angles perpendicular to polygon boundary lines that point to center.
https://staging.qb64phoenix.com/showthre...50#pid7950
I am not using point for collision detection but actual code that checks line (segment) intersections with circles.
I use regular polygons about a central point for easy normal line angles perpendicular to polygon boundary lines that point to center.
https://staging.qb64phoenix.com/showthre...50#pid7950
b = b + ...