Esempio n. 1
0
 public Inertial(double mass, Origin origin, Inertia inertia)
 {
     this.mass    = mass;
     this.origin  = origin;
     this.inertia = inertia;
 }
Esempio n. 2
0
 public Collision(Geometry geometry, string name = null, Origin origin = null)
 {
     this.name     = name;
     this.origin   = origin;
     this.geometry = geometry;
 }
Esempio n. 3
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
 }
Esempio n. 4
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
 }