Reflecting a trace off a surface
🖼️ Rendering•Updated 2 days ago•0 views
Use the trace result's HitNormal - reflect the direction vector around the surface normal (dir - 2*dir:dot(normal)*normal) and trace again from HitPos.
How to do a reflecting trace (bounce a hitscan off a wall)
Use the trace result's HitNormal - reflect the direction vector around the surface normal (dir - 2*dir:dot(normal)*normal) and trace again from HitPos.