fix SS inaccuracy

This commit is contained in:
RandomityGuy 2023-05-09 23:42:00 +05:30
parent 191e77762f
commit fd3cdc5ad0

View file

@ -80,7 +80,7 @@ class SuperSpeed extends PowerUp {
// Determine the necessary rotation to rotate the up vector to the contact normal.
quat2.initMoveTo(this.level.currentUp, marble.lastContactNormal);
movementVector.transform(quat2.toMatrix());
marble.velocity = marble.velocity.add(movementVector.multiply(-24.7));
marble.velocity = marble.velocity.add(movementVector.multiply(-25));
// marble.body.addLinearVelocity(Util.vecThreeToOimo(movementVector).scale(24.7)); // Whirligig's determined value
// marble.body.addLinearVelocity(this.level.currentUp.scale(20)); // Simply add to vertical velocity