Quantcast
Channel: Latest Questions by TheXWolf
Viewing all articles
Browse latest Browse all 9

Direction/Hit Detection without triggers.

$
0
0
I have 2 objects, neither one can have solid colliders on them, nor do I have any reason to put rigidbodies on them. (Yes I know I *can* and mark them Kinematic, but that seems like a waste. My issue is that I have one of the objects pointing at the other. When object A is pointing at object B it tells object B it's doing so. But I also need to know when it *stops* pointing at the object also. A raycast would work but I have no way of A telling B it left or B knowing A left. Also distance matters, it could be from 1-30 m away at any point. My original idea was just to put a trigger on both and put a kinematic RB on A or vise versa but it seems like a waste. Any opinions/options anyone can think of?

Viewing all articles
Browse latest Browse all 9

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>