Open frankiezafe opened 6 years ago
Yeah, it's definitely worth it. Ultimately, it should support the OSC spec (http://opensoundcontrol.org/spec-1_0) and utility function specific for Godot are definitely useful, including serialization.
sending part is done in OSCsender for vector2, vector3, quaternion and transform
In the idea of VVVV osc implementation, adding methods to pack and unpack vector2, vector3, vector4, quaternion, matrix3x3 and matrix4x4, with or without adding special types in the OSC messages.
For instance, you do:
to send and to retrieve, you do:
If no new types are added, the vectors and matrices are sent as an array of floats. Therefore, it is always possible to retrieve them by doing:
I did something like that in another implementation, and it is quite practical to serialise info from the 3d world.