playbark/World3D.cs
Tony Bark 85a0e2eda1 Remove Init() function
- Renamed ReadConfig() to Settings()
- Made Game() function unsafe
- Removed Init from Camera() in World3D class
- Allow for unsafe blocks
2025-03-21 01:39:43 -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 Camera(Vector3 pos, Vector3 target, Vector3 up, CameraProjection projection)
{
var camera = new Camera3D();
camera.Position = pos;
camera.Target = target;
camera.Up = up;
camera.FovY = 45.0f;
camera.Projection = projection;
return camera;
}
}