From 48914c2927afb4a8cc371b048f506a99eff0c0c2 Mon Sep 17 00:00:00 2001 From: Cassandra de la Cruz-Munoz Date: Wed, 16 Aug 2023 19:34:48 -0400 Subject: [PATCH] add new constructor for VmcExtDevicePos --- VmcMessages/VmcExtDevicePos.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/VmcMessages/VmcExtDevicePos.cs b/VmcMessages/VmcExtDevicePos.cs index 9401f0d..ace7df9 100644 --- a/VmcMessages/VmcExtDevicePos.cs +++ b/VmcMessages/VmcExtDevicePos.cs @@ -76,5 +76,11 @@ namespace godotVmcSharp serial = (string)m.Data[0].Value; transform = new Godot.Transform3D(new Godot.Basis(new Godot.Quaternion((float)m.Data[4].Value, (float)m.Data[5].Value, (float)m.Data[6].Value, (float)m.Data[7].Value)), new Godot.Vector3((float)m.Data[1].Value, (float)m.Data[2].Value, (float)m.Data[3].Value)); } + + public VmcExtDevicePos(godotOscSharp.Address _addr, string _serial, Godot.Transform3D _transform) : base(_addr) + { + serial = _serial; + transform = _transform; + } } } \ No newline at end of file