my enemies spawn their projectiles from an image point that is not the spites' origin.
This results in enemies postioning themselves at corners that they look past but cant shoot past, cos the origin has LoS but not the gun. So the projectile gets stuck in the wall/corner.
Is there a way to have the LoS behaviour check for a different position than the object's origin?
Develop games in your browser. Powerful, performant & highly capable.
hm, not possblie then?
how about doing a manual line of sight test? how would i go about that, we don't have raycasts in 2d, do we?
Give the character an offset from walls.
Remove corners, round corners, alter collision polygon.
Create non solid barriers at corners.
Put the line of sight behavior on the gun.