Original Post
Hello, I was reading Eberly's Game Physics Book. I get confused in one place here: Page 248 Please look at the line: A.v = A.p * A.massinv; B.v = A.p * B.massinv; Why there is written A.p in the second line instead of B.p? (B.v = B.p * B.massinv) And can i write impulse inside that response like that: Thanks, Kasya
void ProcessCollidingContact(...) {
//.....
vector impulse = f * N;
A.v += impulse * A.massinv;
B.v -= impulse * B.massinv;
//...
}