Hexagonal drop targets
Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 5384
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Hexagonal drop targets
Thinking a bit about this . . .
- Attachments
-
- Hive.jpg (8.03 KiB) Viewed 1869 times
Last edited by richmond62 on Thu Jan 09, 2020 7:45 pm, edited 1 time in total.
-
- VIP Livecode Opensource Backer
- Posts: 8418
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Heagonal drop targets
Use polygon objects, or a lot of math. But I think polygon objects would be simplest for hit-testing.
Richard Gaskin
LiveCode Community Liaison
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode Community Liaison
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 5384
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Hexagonal drop targets
Polygon objects are always going to be better than blowing my brains with Mathematics. 

-
- VIP Livecode Opensource Backer
- Posts: 8418
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Hexagonal drop targets
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.
Richard Gaskin
LiveCode Community Liaison
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode Community Liaison
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn