Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to reflect a direction?

Asked by 2 years ago
Edited 2 years ago

Hello, i want to make a mirror with a viewport. Meaning i need to constantly change the angle the viewport camera is facing to be consistent with what one would see from a real mirror. This of course means I must get the reflected direction from the camera to the mirror. Basically i need to use this direction (mirror.pos - camera.pos) and reflect it against the mirror surface. Thanks.

image of example

Answer this question