0

image sample

1

I'm making a game with enemy alert feature. My problem is how to know the collision point to axis or screen boundary which will be the position I have to put the enemy indicator. Note: Using only Vector2 or manual mathematical formula WITHOUT using any unity engine.

I tried making the Y to 0 but X is not accurate.

Thank you so much.

vimuth
  • 5,064
  • 33
  • 79
  • 116
  • Could you please elaborate on your question or provide your current code? If you're looking to get `Plane` intersections, you could use `GeometryUtility.TestPlanesAABB`. If it's for your camera's view frustum then you could use `GeometryUtility.CalculateFrustumPlanes` – Juris Dec 09 '22 at 09:18

0 Answers0