Page 1 of 1

Hexagonal drop targets

Posted: Thu Jan 09, 2020 11:04 am
by richmond62
Thinking a bit about this . . .

Re: Heagonal drop targets

Posted: Thu Jan 09, 2020 4:30 pm
by FourthWorld
Use polygon objects, or a lot of math. But I think polygon objects would be simplest for hit-testing.

Re: Hexagonal drop targets

Posted: Thu Jan 09, 2020 7:46 pm
by richmond62
Polygon objects are always going to be better than blowing my brains with Mathematics. :D

Re: Hexagonal drop targets

Posted: Thu Jan 09, 2020 7:58 pm
by FourthWorld
It's effectively the same arithmetic, but done in the engine in compiled object code rather than via script. I've found that it takes a very large number of objects on a card to slow hit-testing below what would be needed if scripted instead.