Otman Benchekroun
otmanon.bsky.social
Otman Benchekroun
@otmanon.bsky.social
3rd year PhD student working on interactive physics based simulation.
🇨🇦
otman.ca
Here's a simple script that does basically that.
gist.github.com/otmanon/a5ab...
They important part is to use polyscopes `screen_to_world_pos` and `screen_to_world_ray` functions, and remember the depth at which you want the desired drag point position to take on.
Mouse Click/Drag UI for Polyscope
Mouse Click/Drag UI for Polyscope. GitHub Gist: instantly share code, notes, and snippets.
gist.github.com
December 23, 2024 at 7:41 PM