public void EmitDebuggableConstraint(Geometry.Manifold m, TwoWayPenFricConstraint.Partial p, TwoWayPenFricConstraint c, bool useContact1, float dt)
 {
     if (debuggableConstraints != null)
     {
         debuggableConstraints.Add(new DebuggableConstraint(m, p, c, useContact1, dt: dt));
     }
 }
 public DebuggableConstraint(Geometry.Manifold m, TwoWayPenFricConstraint.Partial p, TwoWayPenFricConstraint c, bool useContact1, float dt)
 {
     this.m           = m;
     this.useContact1 = useContact1;
     constraint       = c;
     this.dt          = dt;
     this.p           = p;
 }
Пример #3
0
 public void DebugCollect(ShadowEdgeManifold manifold, EdgeMount mount, TwoWayPenFricConstraint.Partial partial)
 {
     if (debugEdgeMounts != null)
     {
         debugEdgeMounts.Add(new EdgeMountTuple {
             m = manifold, mount = mount, partialConstraint = partial
         });
     }
 }
Пример #4
0
 public void Deconstruct(out ShadowEdgeManifold m, out EdgeMount mount, out TwoWayPenFricConstraint.Partial partialConstraint)
 {
     m                 = this.m;
     mount             = this.mount;
     partialConstraint = this.partialConstraint;
 }