Example of vertex docking ( snap to grid ) mouse picking…

Hi all.
Here is a little something for those of you that need yet more information on mouse picking. This little program I wrote today shows of how to combine the information in the hello picking tutorial with a few tips found on the forums to build the basics of a ‘snap to grid’ tool or space ship editor or city builder. depends on how you look at it and what your needs are really i guess. Well enjoy.

Example of vertex docking ( snap to grid ) mouse picking and more

3 Likes

I found an issue in my code that stopped the yellow ball being placed correctly if the geometry was moved. I should have spotted that. I updated the code, made a better example and simpler comments.

1 Like