Fixed OWC for rigid bodies, closes #25732
This commit is contained in:
parent
fb8dce3e2e
commit
cb09abdbbd
1 changed files with 2 additions and 2 deletions
|
@ -303,7 +303,7 @@ bool BodyPair2DSW::setup(real_t p_step) {
|
||||||
Contact &c = contacts[i];
|
Contact &c = contacts[i];
|
||||||
if (!c.reused)
|
if (!c.reused)
|
||||||
continue;
|
continue;
|
||||||
if (c.normal.dot(direction) < 0)
|
if (c.normal.dot(direction) > 0) //greater (normal inverted)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
valid = true;
|
valid = true;
|
||||||
|
@ -326,7 +326,7 @@ bool BodyPair2DSW::setup(real_t p_step) {
|
||||||
Contact &c = contacts[i];
|
Contact &c = contacts[i];
|
||||||
if (!c.reused)
|
if (!c.reused)
|
||||||
continue;
|
continue;
|
||||||
if (c.normal.dot(direction) < 0)
|
if (c.normal.dot(direction) < 0) //less (normal ok)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
valid = true;
|
valid = true;
|
||||||
|
|
Loading…
Reference in a new issue