Not able to create and scale (from a side) dynamic 2d rectangle with mouse #986
-
I want to create a rectangle in based on 2 coordinates. The first coordinate is of the first user click, the second coordinate is where the user drags the cursor. I also want to be scalable on x axis (width constant) by dragging one of the perpendicular sides. I have not not found any fix yet. Please help as I am still noob in this. |
Beta Was this translation helpful? Give feedback.
Answered by
mattrossman
Feb 8, 2021
Replies: 1 comment 8 replies
-
I'd start by making a plane to receive click events, from this you can get the cursor coordinates in 3D space. Maybe you could share more information on what you have tried and what you are stuck on? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd start by making a plane to receive click events, from this you can get the cursor coordinates in 3D space. Maybe you could share more information on what you have tried and what you are stuck on?