Hexagonal drop targets
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 10096
- Joined: Fri Feb 19, 2010 10:17 am
Hexagonal drop targets
Thinking a bit about this . . .
- Attachments
-
- Hive.jpg (8.03 KiB) Viewed 3975 times
Last edited by richmond62 on Thu Jan 09, 2020 7:45 pm, edited 1 time in total.
-
- VIP Livecode Opensource Backer
- Posts: 10045
- Joined: Sat Apr 08, 2006 7:05 am
- 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 development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 10096
- Joined: Fri Feb 19, 2010 10:17 am
Re: Hexagonal drop targets
Polygon objects are always going to be better than blowing my brains with Mathematics. 

-
- VIP Livecode Opensource Backer
- Posts: 10045
- Joined: Sat Apr 08, 2006 7:05 am
- 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 development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn