2023-09-24 18:26:52 +02:00
|
|
|
using Godot;
|
|
|
|
|
|
|
|
namespace godotVmcSharp
|
|
|
|
{
|
2023-09-24 18:29:17 +02:00
|
|
|
class CameraReceiver
|
2023-09-24 18:26:52 +02:00
|
|
|
{
|
|
|
|
readonly Camera3D camera;
|
|
|
|
|
|
|
|
public CameraReceiver(Camera3D camera)
|
|
|
|
{
|
|
|
|
this.camera = camera;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void ProcessMessage(VmcExtCam message) {
|
|
|
|
this.camera.Fov = message.Fov;
|
|
|
|
this.camera.Transform = message.Transform;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|