I try to make the selected object move in X axis when the toolbar moves and wrote below:
Vector3 x = new Vector3();
Vector3 y = new Vector3();
toolbarMarkerNode.WorldTransformation.Decompose(out x, out outRotation, out y);
sphereTransNode.Translation.X = x.X;
But there is an error called "Cannot modify the return value of 'GoblinXNA.SceneGraph.TransformNode.Translation' because it is not a variable "
Could u explain for me why that happen and how could I fix it?