mirror of
https://github.com/tonytins/playbark.git
synced 2025-04-30 02:21:41 -04:00
- Renamed ReadConfig() to Settings() - Made Game() function unsafe - Removed Init from Camera() in World3D class - Allow for unsafe blocks
17 lines
No EOL
471 B
C#
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;
|
|
}
|
|
} |