public override void LoadFromXElement(XElement root) { base.LoadFromXElement(root); Mass = Convert.ToSingle(root.Element("Mass").Value); Velocity = new Vector2(); XElement b = root.Element("Velocity"); XElement a = root.Element("Velocity").Element("Vector2"); Velocity = Velocity.loadFromXElement(root.Element("Velocity").Element("Vector2")); Force = new Vector2(); Force = Force.loadFromXElement(root.Element("Force").Element("Vector2")); AllowFriction = Convert.ToBoolean(root.Element("AllowFriction").Value); }