Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cloth push-back and pass-through
#6
(14-07-2023, 07:54 AM)josemendez Wrote: The basic formula is your typical PBD constraint:
Code:
lambda = constraint * (massA + massB);
deltaA = lambda * gradient / massA;
deltaB = lambda * gradient / massB;

Did you mean lambda = constraint * ( invMassA + invMassB)?

which is consistent with PBD paper/slides and Obi code:
BurstContact.SolveAdhesion {
...
     float dlambda = -constraint / TotalNormalInvMass;
...
}

=====
Then velocity of the rigidbody is calculated here?

BurstMath.ApplyImpulse {
...
    linearDeltas[rigidbodyIndex]  += rigidbodies[rigidbodyIndex].inverseMass * impulseWS;
...
}
=====
Then somehow Unity calculates something that interacts with the joint force.
Reply


Messages In This Thread
Cloth push-back and pass-through - by danazoid - 14-07-2023, 06:21 AM
RE: Cloth push-back and pass-through - by danazoid - 17-07-2023, 08:44 AM