Line drawing and multi selection workaround
dunkelgeist
Member Posts: 68
I've been testing the DRAWER ORBZAMPLE line drawing demo and I find it useful to simulate a multiselection of items in a touchy way.
Fact is, I can't figure out how to detect a closed shape or a collision between two drawed lines because they are always colliding as the lines draw sticked to each other.
I don't want to draw them separated because spaced lines don't assure an ending collision to detect.
I think that if I can detect the selection ending I can draw a circle from the center of the closed shape to collide with inner actors and select them.
So two problems here:
1. Detecting a closed shape or a lines crossing event (selection end)
2. Getting the coordinates of the center of the shape (allows me to draw the big selection collider actor)
Someone wants to help? Thanks in advance!
Fact is, I can't figure out how to detect a closed shape or a collision between two drawed lines because they are always colliding as the lines draw sticked to each other.
I don't want to draw them separated because spaced lines don't assure an ending collision to detect.
I think that if I can detect the selection ending I can draw a circle from the center of the closed shape to collide with inner actors and select them.
So two problems here:
1. Detecting a closed shape or a lines crossing event (selection end)
2. Getting the coordinates of the center of the shape (allows me to draw the big selection collider actor)
Someone wants to help? Thanks in advance!
Comments