I have a bounding box on my object and i would like to use it to check if my attack radius intercepts the bounding box.
for example in the Platformer Tut the code is:
if (Vector3.Distance(enemy.transform.position, pos) < punchRadius)
but this doesn’t work for my wide objects as tranform position is the center
Is there a way to say
if (punchRadius.Intercepts(enemy.BoundingBox)
Thanks![/code]