Fixed incorrect Entity push velocity direction (#42)

Co-authored-by: Marioiscool246 <marioiscool101@gmail.com>
This commit is contained in:
Marioiscool246
2023-08-08 08:44:06 -04:00
committed by GitHub
parent 6036304087
commit 8921360ecc

View File

@@ -863,9 +863,10 @@ void Entity::push(Entity* bud)
x2 = 1.0f;
float x3 = 1.0f - this->field_B0;
float x4 = x3 * diffX / x1 * x2 * 0.05f;
float x5 = x3 * diffZ / x1 * x2 * 0.05f;
push(-x4, 0.0f, -x4);
bud->push(x4, 0.0f, x4);
push(-x4, 0.0f, -x5);
bud->push(x4, 0.0f, x5);
}
void Entity::push(float x, float y, float z)