Created a line trace to hit a non collidable object by Whitaker


Welcome back. Today I fought a great battle. I was attempting to do ray casts, or line traces, from the front of our camera in a forward direction to see if anything was blocking the camera from viewing the player. However, all of my line traces were going through the trees! The trees were the main thing that could potentially block the camera, too. Many failed attempts at casting to different object just to realize it was the collision data that was the issue all along!

So, after adjusting our trees to be from no collision to queries only and set up the proper check boxes to disable all physical collisions. I was able to get my lines to hit the tree properly.  Next steps will be to figure out how to make the trees opaque. That way we can see the players through them if the situation warrants it. Don't panic, Partiers. We will figure it out!

Get Party Panic!

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.