I need help figuring out how to store a velocity vector that is declared as follows:
me.vel = [0, 0, 0];
I want to save this velocity vector into a MySQL database. I believe it needs to be converted into a string for storage purposes. However, I am unsure of which data type would be most suitable for storing it - VARCHAR, INT, STRING, etc. If there's a way to store it directly without conversion, please let me know the appropriate data type (it would be much simpler than converting it back and forth between string and vector).
I've attempted the following methods:
var velocityString = me.vel.join();
var velocityString = String(me.vel);
Unfortunately, neither of these options seem to work.
Could you please provide guidance on how I can properly convert this array into a string?
Thank you, Digimas