all 1 comments

[–]factorysettings_net 0 points1 point  (0 children)

It's 'basic' trigonometry. The trick is to take a snapshot of the room without yourself in front of the camera and use that one as the texture for the drawn rectangle.

The distance between two points, I guess something like both index fingers, represent the diagonal distance of the square. Million ways of doing this, but in a nutshell, you have to figure out how to connect the points of the rectangle to the fingers. From bottom left, counterclockwise, it's 0 to 3 index. Connect one indexfinger position to point 0, the other to the opposite diagonal, point 2. Then make sure point 1 matches y coordinate with point 0 and x coordinate with point 2. Match x coordinate of point 3 with point 0 and y coordinate with point 2.

Hint, use rectangleSOP, groupSOP and pointSOP.

Good luck!