A function defined in BBMOD_BaseCamera.gml
world_to_screen(_vector[, _screenWidth[, _screenHeight]])
Computes screen-space position from a vector in world-space.
Name | Type | Description |
---|---|---|
_vector | Struct.BBMOD_Vec3, Struct.BBMOD_Vec4 |
The vector in world-space. |
_screenWidth | Real |
The width of the screen. If undefined , it is retrieved using window_get_width . |
_screenHeight | Real |
The height of the screen. If undefined , it is retrieved using window_get_height . |
Struct.BBMOD_Vec4
The screen-space position or undefined
if the point is outside of the screen.
This requires BBMOD_BaseCamera.ViewProjectionMatrix, so you should use this after BBMOD_BaseCamera.update_matrices (or BBMOD_BaseCamera.update) is called!
Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.