Actor collision

Implementing the homebrew knockback feature. It's almost working but how do I test if two actor tokens are collding with each other? I a trying various methods with no success
3 Replies
enso
enso•10mo ago
if by "colliding" you mean the two tokens are overlapping, you can get the center, height, and width of each token, and then do some math to see if they share any area
Spider-Code-Monkey
Spider-Code-Monkey•10mo ago
That is what I figured I was hoping for something maybe a little more out of box; but all good going for the old fashioned method when u have the time 🙂
enso
enso•10mo ago
there might be method in the quadtree of the token or something
Want results from more Discord servers?
Add your server