playbark/World3D.cs
Tony Bark b8cd12302e Renamed World to World3D
- Renamed World3D's Camera to InitCamera
2025-03-21 00:43:27 -04:00

17 lines
No EOL
471 B
C#

// I hereby waive this project under the public domain - see UNLICENSE for details.
namespace PlayBark;
internal static class World3D
{
public static Camera3D InitCamera(Vector3 pos, Vector3 target, Vector3 up, CameraProjection projection)
{
Camera3D camera = new();
camera.Position = pos;
camera.Target = target;
camera.Up = up;
camera.FovY = 45.0f;
camera.Projection = projection;
return camera;
}
}