mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'velocity-fix' into 'master'
Fix velocity when stuck See merge request veloren/veloren!453
This commit is contained in:
commit
1bb969ef36
@ -97,7 +97,7 @@ impl<'a> System<'a> for Sys {
|
||||
{
|
||||
HUMANOID_AIR_ACCEL
|
||||
}
|
||||
(true, false, true, false)
|
||||
(true, false, true, _)
|
||||
if vel.0.magnitude_squared() < ROLL_SPEED.powf(2.0) =>
|
||||
{
|
||||
ROLL_ACCEL
|
||||
|
@ -257,6 +257,7 @@ impl<'a> System<'a> for Sys {
|
||||
|
||||
if attempts == MAX_ATTEMPTS {
|
||||
pos.0 = old_pos;
|
||||
vel.0 = Vec3::zero();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user