Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

Parsing to Vector3D always returns 0;0;0

$
0
0
Hi,

after the last Update my conversion from String to Vector3D doesn't work anymore. Here an example:

Vector3D PoSi = new Vector3D(5, 5, 5);
string GPS = Me.Position.ToString();
Echo(GPS); >> This returns [X:-4, Y:1, Z:2]
VRageMath.Vector3D.TryParse(GPS , out PoSi);
Me.CustomData = PoSi.ToString(); >> This returns X:0 Y:0 Z:0


Can anyone help?
--- Automerge ---
Problem solved ;-)

anything.Position.ToString(); adds "{" and "}" to the String ....

Parsing to Vector3D always returns 0;0;0

Viewing all articles
Browse latest Browse all 903

Trending Articles