getWorldToScreen function

Vector2 getWorldToScreen(
  1. Vector3 position,
  2. Camera3D camera
)

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));
}