19 lines
388 B
C#
19 lines
388 B
C#
|
using Godot;
|
||
|
|
||
|
namespace godotVmcSharp
|
||
|
{
|
||
|
class CameraReceiver : Node3D
|
||
|
{
|
||
|
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;
|
||
|
}
|
||
|
}
|
||
|
}
|