Object A is a distance between object C if object B is in between do something else.
how do I check this in 360 degrees?
Develop games in your browser. Powerful, performant & highly capable.
Check out this tutorial to see how Line of Sight was done by stretching a sprite and checking for overlap.
https://www.scirra.com/tutorials/474/pa ... e-of-sight