mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix SS inaccuracy
This commit is contained in:
parent
191e77762f
commit
fd3cdc5ad0
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue