Browsing Wiremod's section
← Back to ACE
💬

Community answer

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

Converting world position to 2D screen coordinates

💻 Expression 2Updated 2 days ago•0 views
Transform the point into local view coordinates then divide by distance - gives coords in range about (-1,1); multiply by tan(fov/2) for the FOV factor. For E2 …

How to get local view/screen coordinates (campos/camang equivalent) for projection math

Transform the point into local view coordinates then divide by distance - gives coords in range about (-1,1); multiply by tan(fov/2) for the FOV factor. For E2 there was a worldToLocalAngles-based approach.

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.