Exemplo n.º 1
0
 public Collision(XElement node)
 {
     name     = (string)node.Attribute("name");                                               // optional
     origin   = (node.Element("origin") != null) ? new Origin(node.Element("origin")) : null; // optional
     geometry = new Geometry(node.Element("geometry"));                                       // required
 }
Exemplo n.º 2
0
 public Inertial(XElement node)
 {
     origin  = (node.Element("origin") != null) ? new Origin(node.Element("origin")) : null; // optional
     mass    = (double)node.Element("mass").Attribute("value");                              // required
     inertia = new Inertia(node.Element("inertia"));                                         // required
 }