From 49a1fa88c997a3d6deef9a39072e9432633e54b8 Mon Sep 17 00:00:00 2001 From: Cassandra de la Cruz-Munoz Date: Wed, 16 Aug 2023 19:12:12 -0400 Subject: [PATCH] fix typo in error, create new constructor for VmcExtBonePos --- VmcMessages/VmcExtBonePos.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/VmcMessages/VmcExtBonePos.cs b/VmcMessages/VmcExtBonePos.cs index 1720613..0f0103f 100644 --- a/VmcMessages/VmcExtBonePos.cs +++ b/VmcMessages/VmcExtBonePos.cs @@ -31,7 +31,7 @@ namespace godotVmcSharp { if (m.Data.Count != 8) { - GD.Print($"Invalid number of arguments for {base.addr}. Expected 8 or 14, received {m.Data.Count}."); + GD.Print($"Invalid number of arguments for {addr}. Expected 8, received {m.Data.Count}."); return; } if (m.Data[0].Type != 's') @@ -77,5 +77,11 @@ namespace godotVmcSharp name = (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 VmcExtBonePos(string _name, Godot.Transform3D _transform) : base(new godotOscSharp.Address("/VMC/Ext/Bone/Pos")) + { + name = _name; + transform = _transform; + } } } \ No newline at end of file