rj-action-library/Runtime/VirtualCameras/VirtualCamera3D.cs

34 lines
510 B
C#
Raw Normal View History

2024-05-19 15:59:41 +00:00
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using System;
using Godot;
namespace Rokojori
{
[Tool]
[GlobalClass]
2025-01-08 18:46:17 +00:00
public partial class VirtualCamera3D:Node3D
2024-05-19 15:59:41 +00:00
{
[Export]
public float fov = 60;
2025-01-08 18:46:17 +00:00
public Vector3 GetCameraPosition()
2024-05-19 15:59:41 +00:00
{
return GlobalPosition;
}
2025-01-08 18:46:17 +00:00
public Quaternion GetCameraRotation()
2024-05-19 15:59:41 +00:00
{
return GlobalBasis.GetRotationQuaternion();
}
2025-01-08 18:46:17 +00:00
public float GetCameraFOV()
2024-05-19 15:59:41 +00:00
{
return fov;
}
}
}