nudge things lol

This commit is contained in:
RandomityGuy 2023-02-14 23:24:36 +05:30
parent 311579e631
commit c7da2c2de6

View file

@ -1579,8 +1579,8 @@ class Marble extends GameObject {
tdiff = diff;
}
var expectedPos = finalPosData.position;
var newPos = expectedPos;
// var newPos = nudgeToContacts(expectedPos, _radius, finalPosData.foundContacts);
// var newPos = expectedPos;
var newPos = nudgeToContacts(expectedPos, _radius, finalPosData.foundContacts);
if (this.velocity.lengthSq() > 1e-8) {
var posDiff = newPos.sub(expectedPos);