create new constructor for VmcExtRootPos

This commit is contained in:
Cassandra de la Cruz-Munoz 2023-08-17 09:45:27 -04:00
parent b8186dac8b
commit a1b49e25d6

View File

@ -46,6 +46,20 @@ namespace godotVmcSharp
} }
} }
public VmcExtRootPos(string _name, Godot.Transform3D _transform) : base(new godotOscSharp.Address("/VMC/Ext/Root/Pos"))
{
name = _name;
transform = _transform;
}
public VmcExtRootPos(string _name, Godot.Transform3D _transform, Godot.Vector3 _scale, Godot.Vector3 _offset) : base(new godotOscSharp.Address("/VMC/Ext/Root/Pos"))
{
name = _name;
transform = _transform;
scale = _scale;
offset = _offset;
}
private void Transform8(List<godotOscSharp.OscArgument> data) private void Transform8(List<godotOscSharp.OscArgument> data)
{ {
if (data[0].Type != 's') if (data[0].Type != 's')