Reset the eyePos on death.

Should fix #968
This commit is contained in:
IntegratedQuantum 2025-02-23 20:15:31 +01:00
parent dc3b2924a5
commit 70c3772b1b

View File

@ -528,6 +528,7 @@ pub const Player = struct { // MARK: Player
Player.super.health = Player.super.maxHealth;
Player.eyePos = .{0, 0, 0};
Player.eyeVel = .{0, 0, 0};
Player.eyeCoyote = 0;
Player.jumpCoyote = 0;