Example #1
0
 /**
  * Sets this manifold point form the given one
  * @param cp the point to copy from
  */
 public void set(ManifoldPoint cp)
 {
     localPoint.set(cp.localPoint);
     normalImpulse = cp.normalImpulse;
     tangentImpulse = cp.tangentImpulse;
     id.set(cp.id);
 }
Example #2
0
 /**
  * Creates a manifold point as a copy of the given point
  * @param cp point to copy from
  */
 public ManifoldPoint(ManifoldPoint cp)
 {
     localPoint = cp.localPoint.clone();
     normalImpulse = cp.normalImpulse;
     tangentImpulse = cp.tangentImpulse;
     id = new ContactID(cp.id);
 }