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