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?
↧