Using phys.picker with gl.path?

James Charlton's icon

I'm trying to figure out if its possible to use jit.phys.picker with a jit.gl.path.

It seems that the path is not selectable using the picker. Have i got this wrong or is there a way to convert a path into a selectable object while maintaining the ability to add new points to it?

Rob Ramirez's icon

you are correct, jit.gl.path does not support picking (i assume you mean jit.gl.picker, and not jit.phys.picker?)

i can look at supporting this for the next update, but it will simply be bounding-box based, meaning if you click anywhere in the box that encloses the path points, you will get a hit.
you will not be able to test for clicking directly on the path itself.

James Charlton's icon

Yes sorry gl.picker. It would be great to have this functionality and the bounding box will work just great for my current needs. Thanks for clearing that up for me Rob.