Hit detection and packing up! (Patreon)
Published:
2022-04-14 11:42:07
Imported:
2022-04
Content
Finally dealt with the main point I wanted to address on the gameplay side of the deal, before getting a new build to you guys~
The new hit detection script is 100% accurate, and that only required a handful of lines.
If the collider area of an enemy/object (ABCD polygon) equals the area of the 4 triangles around the hit point (X), the attack connects.
ABCD = AXB + BXC + CXD + DXA whenever the hit is in range👍
Now I can get back to...