Ray casting with bump.lua issues

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
MaxGamz
Party member
Posts: 100
Joined: Fri Oct 28, 2022 3:09 am

Ray casting with bump.lua issues

Post by MaxGamz »

I'm trying to make a raycaster using bump for physics, however, while collisions are being detected, I have trouble with getting my ray to shrink as the player gets closer to a wall. The ray gets smaller, but also increases in size at certain areas and I'm not sure what's causing this. I felt like bump would have made the process simpler, but the size of the ray isn't changing how I want it to.

Relevant code is on rays.lua file
test.love
(828.59 KiB) Downloaded 46 times
Post Reply

Who is online

Users browsing this forum: Bing [Bot], CPop and 47 guests