mirror of
https://github.com/XProger/OpenLara.git
synced 2025-02-24 15:32:30 +01:00
fix velocity direction after swan dive
This commit is contained in:
parent
87126db2ca
commit
611bac3ef7
@ -2640,7 +2640,7 @@ struct Lara : Character {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (state == STATE_SWAN_DIVE || state == STATE_FAST_DIVE) {
|
if (state == STATE_SWAN_DIVE || state == STATE_FAST_DIVE) {
|
||||||
angle.x = (state == STATE_SWAN_DIVE ? -45.0f : 85.0f) * DEG2RAD;
|
angle.x = (state == STATE_SWAN_DIVE ? -45.0f : -85.0f) * DEG2RAD;
|
||||||
pos.y += 100.0f;
|
pos.y += 100.0f;
|
||||||
velocity.y *= 2.0f;
|
velocity.y *= 2.0f;
|
||||||
game->waterDrop(pos, 128.0f, 0.2f);
|
game->waterDrop(pos, 128.0f, 0.2f);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user