Log in to vote

How to reflect a direction?

Asked by 15 days ago
Edited 15 days 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