Update the contact point with a new one that is similar (very close) The idea is to keep the cache impulse (for warm starting the contact solver)
| 65 | // Update the contact point with a new one that is similar (very close) |
| 66 | /// The idea is to keep the cache impulse (for warm starting the contact solver) |
| 67 | void ContactPoint::update(const ContactPointInfo* contactInfo) { |
| 68 | |
| 69 | assert(isSimilarWithContactPoint(contactInfo)); |
| 70 | assert(contactInfo->penetrationDepth > decimal(0.0)); |
| 71 | |
| 72 | mNormal = contactInfo->normal; |
| 73 | mPenetrationDepth = contactInfo->penetrationDepth; |
| 74 | mLocalPointOnShape1 = contactInfo->localPoint1; |
| 75 | mLocalPointOnShape2 = contactInfo->localPoint2; |
| 76 | |
| 77 | mIsObsolete = false; |
| 78 | } |
nothing calls this directly
no outgoing calls
no test coverage detected