Fix speed explosion when running into a wall on a slippery surface.
This commit is contained in:
parent
be512b42b4
commit
8dd9f38891
1 changed files with 1 additions and 1 deletions
|
@ -682,7 +682,7 @@ local function commonSlideAction(m: Mario, endAction: number, airAction: number,
|
||||||
slideBonk(m, Action.GROUND_BONK, endAction)
|
slideBonk(m, Action.GROUND_BONK, endAction)
|
||||||
elseif wall then
|
elseif wall then
|
||||||
local wallAngle = Util.Atan2s(wall.Normal.Z, wall.Normal.X)
|
local wallAngle = Util.Atan2s(wall.Normal.Z, wall.Normal.X)
|
||||||
local slideSpeed = math.sqrt(m.SlideVelX ^ 2 * m.SlideVelZ ^ 2) * 0.9
|
local slideSpeed = math.sqrt(m.SlideVelX ^ 2 + m.SlideVelZ ^ 2) * 0.9
|
||||||
|
|
||||||
if slideSpeed < 4 then
|
if slideSpeed < 4 then
|
||||||
slideSpeed = 4
|
slideSpeed = 4
|
||||||
|
|
Loading…
Reference in a new issue