Capabilities / project
project
@1A world point in screen pixels. The one most mods want, run host-side so a matrix convention never reaches a mod. Answered by a pack, because it is the camera that makes it answerable.
Calls
world_to_screen
world_to_screen(point: Vec3) -> Result<Vec2>
DPI-scaled, top-left origin. Behind the camera is not a point on the screen, so this can fail rather than return something off-screen that looks real.
In C, from surface.h
int32_t axiom_project_world_to_screen(float point_x, float point_y, float point_z, AxiomVec2* out);
Errors
A call that returns Result crosses as a status: 0 is success, and the others are these errors, by their index in the capability.
OffscreenNoCamera