andrew-peng-144 / js-explore-game

0 stars 0 forks source link

raycast #4

Open andrew-peng-144 opened 3 years ago

andrew-peng-144 commented 3 years ago

build in into the physics a fast way to do a raycast. essentially a big line collision, and returning the point on the line where the closest valid collision happened. useful for line of sight checks or "laser" type attacks