34 lines
548 B
C#
34 lines
548 B
C#
|
|
using System.Diagnostics;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System;
|
|
using Godot;
|
|
|
|
|
|
namespace Rokojori
|
|
{
|
|
[Tool]
|
|
[GlobalClass]
|
|
public partial class VirtualCamera3D:RJVirtualCamera3D
|
|
{
|
|
[Export]
|
|
public float fov = 60;
|
|
|
|
public override Vector3 GetCameraPosition()
|
|
{
|
|
return GlobalPosition;
|
|
}
|
|
|
|
public override Quaternion GetCameraRotation()
|
|
{
|
|
return GlobalBasis.GetRotationQuaternion();
|
|
}
|
|
|
|
public override float GetCameraFOV()
|
|
{
|
|
return fov;
|
|
}
|
|
|
|
}
|
|
} |