Checking for objects right next to another object
Posted: Fri Nov 05, 2021 12:18 am
Been trying for a while now to figure out a way to find objects right next to another object. My current method right now is to create a box next to the object I'm testing with and listen for a collision, but this is inefficient due to how often I need to check, and unreliable because of the high movement speed it has. Is there another, more reliable way to do this?
Below is a visual representation of what happens when I check for objects using my method
Below is a visual representation of what happens when I check for objects using my method