4.1.2 Godot Version
I was wondering if anyone knows how I could make scalable and rotatable 2d top down mirrors? I would need them to reflect multiple objects. For example a top down laser mirror puzzle game that reflects lasers off of mirrors but you can see the mirrors and other type of projectiles.
topdown mirrors? Can you provide a picture of how this is supposed to look?
this is kind of what I mean
so like when the laser or whatever the projectile is gets close enough you can see it in the mirror while its there ive come across a few solutions but they dont allow for like tilted mirrors.
im thinking i might have to make it a 3d game cause i cant find anything anywhere on how this would be possible
Only thing i can imagine here is a shader or a copy of the scene in a second viewport
You just need to create a shader that fits your needs. Here’s a few tutorials that hopefully will help:
- Mirrors with Reflection in Godot 4
- 2D Reflection Effect in Godot Engine - No Code
- Create Water Reflections in Godot 4 | Shader Tutorial
You’d still have to use collision detection to actually reflect your projectiles, but the reflection shader would still show a reflection of whatever is in the scene.