add ToMessage() to VmcExtSetEye

This commit is contained in:
Cassandra de la Cruz-Munoz 2023-08-17 10:03:25 -04:00
parent 5a677d03a9
commit 857e82eab2

View File

@ -18,6 +18,7 @@
using Godot;
using godotOscSharp;
using System.Collections.Generic;
namespace godotVmcSharp
{
@ -62,5 +63,15 @@ namespace godotVmcSharp
enable = _enable;
position = _position;
}
public godotOscSharp.OscMessage ToMessage()
{
return new godotOscSharp.OscMessage(addr, new List<godotOscSharp.OscArgument>{
new godotOscSharp.OscArgument(enable, 'i'),
new godotOscSharp.OscArgument(position.X, 'f'),
new godotOscSharp.OscArgument(position.Y, 'f'),
new godotOscSharp.OscArgument(position.Z, 'f'),
});
}
}
}