I want to find a random point around a node2D, cast a ray to that point, and if its colliding with a wall shrink the ray incrementally towards that node2D until its not colliding anymore. The issue im having is the physics server doesn't update in while loops (for obvious reasons). How should I solve this problem? Any suggestions?
#Check for collisions in a while loop
2 messages · Page 1 of 1 (latest)