add ToMessage() to VmcExtSetEye
This commit is contained in:
parent
5a677d03a9
commit
857e82eab2
|
@ -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'),
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user