for hitscan weapons, I use the following:
killblaster_scan.get_collider().hurt(20) ```
where killblaster_scan is a raycast3d and .hurt(20) reduces the variable `health` by (int) from a maximum of 100 to a minimum of 0, and at 0, the target dies. That all works fine.
How do I translate this to checking if a 3d shape is colliding with the target, calling the target's functions, and triggering hurt(int)