💬

Community answer

Collected from the ACE community Discord archive around 2023-07-02. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

Reflecting a trace off a surface

🖼️ RenderingUpdated 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.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.