getWorldToScreen function
Get the screen space position for a 3d world space position.
Implementation
Vector2 getWorldToScreen(Vector3 position, Camera3D camera) {
return Vector2.fromRef(library.GetWorldToScreen(position.ref, camera.ref));
}
Get the screen space position for a 3d world space position.
Vector2 getWorldToScreen(Vector3 position, Camera3D camera) {
return Vector2.fromRef(library.GetWorldToScreen(position.ref, camera.ref));
}