GLBasic forum

Main forum => GLBasic - en => Topic started by: matty47 on 2012-Jun-03

Title: x_line, x_dot pickable?
Post by: matty47 on 2012-Jun-03
Is there a way to make x_line or x_dot objects pickable with x_collisionray?
I want to be able to draw lines and points on a screen and then pick ( and adjust) individual items.
Thanks for any pointers.
Title: Re: x_line, x_dot pickable?
Post by: Kitty Hello on 2012-Jun-04
No. You can use X_SCREEN2WORLD twice with different Z-values to get a ray under your mouse pointer. Then use simple vector maths to find a perpendicular to another line or a point in space on this line. Take the closest one then.