x_line, x_dot pickable?

Previous topic - Next topic

matty47

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.

Kitty Hello

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.