Add slight gravity while underwater
Mostly just for visual effect, rather than any gameplay implications
This commit is contained in:
parent
3063fe2d80
commit
858075c213
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ Dolphin = function(level, axis, position, z) {
|
|||
moveY = Input.held("up") ? -1 : Input.held("down") ? 1 : 0;
|
||||
|
||||
dolphin.momentum.x += moveX*moveStr;
|
||||
dolphin.momentum.y += moveY*moveStr;
|
||||
dolphin.momentum.y += moveY*moveStr + 0.001;
|
||||
|
||||
dolphin.momentum.x *= 0.99;
|
||||
dolphin.momentum.y *= 0.99;
|
||||
|
|
Loading…
Add table
Reference in a new issue