mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Added properties to PerspectiveCameraController
This commit is contained in:
@@ -21,6 +21,22 @@ namespace GlitchyEngine
|
||||
|
||||
public PerspectiveCamera Camera => _camera;
|
||||
|
||||
public float TranslationSpeed
|
||||
{
|
||||
get => _cameraTranslationSpeed;
|
||||
set => _cameraTranslationSpeed = value;
|
||||
}
|
||||
|
||||
public Vector2 RotationSpeed
|
||||
{
|
||||
get => .(_cameraRotationSpeedX, _cameraRotationSpeedY);
|
||||
set
|
||||
{
|
||||
_cameraRotationSpeedX = value.X;
|
||||
_cameraRotationSpeedY = value.Y;
|
||||
}
|
||||
}
|
||||
|
||||
public Vector3 CameraPosition
|
||||
{
|
||||
get => _cameraPosition;
|
||||
@@ -31,6 +47,39 @@ namespace GlitchyEngine
|
||||
UpdateCamera();
|
||||
}
|
||||
}
|
||||
|
||||
public Vector3 CameraRotation
|
||||
{
|
||||
get => _cameraRotation;
|
||||
set
|
||||
{
|
||||
_cameraRotation = value;
|
||||
|
||||
UpdateCamera();
|
||||
}
|
||||
}
|
||||
|
||||
public float FovY
|
||||
{
|
||||
get => _fovY;
|
||||
set
|
||||
{
|
||||
_fovY = value;
|
||||
|
||||
UpdateCamera();
|
||||
}
|
||||
}
|
||||
|
||||
public float AspectRatio
|
||||
{
|
||||
get => _aspectRatio;
|
||||
set
|
||||
{
|
||||
_aspectRatio = value;
|
||||
|
||||
UpdateCamera();
|
||||
}
|
||||
}
|
||||
|
||||
public this(float aspectRatio)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user