I'm creating a game with a gun in it and decided to use line of sight on the gun to check if it hits something. The issue is that it only checks if it hits an image point, not the entire object. How can I check if the gun hits the entire object?
Develop games in your browser. Powerful, performant & highly capable.
You need to use raycasting feature of LOS behavior. See this official example:
editor.construct.net
Thank you.