💬

Community answer

Collected from the ACE community Discord archive around 2024-02-16. It may be informal or outdated — anyone can edit this page to improve it. This topic changes between game versions — double-check before relying on it. Original discussion

Getting surface bounds for wall-walking/climbing

💬 GeneralUpdated 2 days ago•1 views
SurfaceInfo:getVertices() gives world positions of the surface verts (usually 4+); game.getWorld():getBrushPlane(ind):getNormal() gives the surface normal. Brus…

How to get the size/bounds of a map surface (brush) for a Zelda-style wall-walk

SurfaceInfo:getVertices() gives world positions of the surface verts (usually 4+); game.getWorld():getBrushPlane(ind):getNormal() gives the surface normal. Brushes aren't entities so find.inSphere won't return them - use traces to detect edges, precompute per-brush bounds into a table and test with Vector:WithinAABox. SF has no ProjectedTexture. For rendering the character on the wall, use holos with world-fixed clipping planes at corners.

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.