mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
state corrections
This commit is contained in:
parent
37c733a067
commit
45971fa403
@ -87,7 +87,8 @@ impl CharacterBehavior for Data {
|
|||||||
},
|
},
|
||||||
Climb::Hold => {
|
Climb::Hold => {
|
||||||
// Antigrav
|
// Antigrav
|
||||||
update.vel.0.z = (update.vel.0.z + data.dt.0 * GRAVITY * 1.1).min(CLIMB_SPEED);
|
update.vel.0.z =
|
||||||
|
(update.vel.0.z + data.dt.0 * GRAVITY * 1.075).min(CLIMB_SPEED);
|
||||||
update.vel.0 = Lerp::lerp(
|
update.vel.0 = Lerp::lerp(
|
||||||
update.vel.0,
|
update.vel.0,
|
||||||
Vec3::zero(),
|
Vec3::zero(),
|
||||||
|
@ -24,7 +24,9 @@ impl CharacterBehavior for Data {
|
|||||||
update.character = CharacterState::GlideWield;
|
update.character = CharacterState::GlideWield;
|
||||||
return update;
|
return update;
|
||||||
}
|
}
|
||||||
|
if data.physics.in_fluid {
|
||||||
|
update.character = CharacterState::Idle;
|
||||||
|
}
|
||||||
// If there is a wall in front of character and they are trying to climb go to
|
// If there is a wall in front of character and they are trying to climb go to
|
||||||
// climb
|
// climb
|
||||||
handle_climb(&data, &mut update);
|
handle_climb(&data, &mut update);
|
||||||
|
Loading…
Reference in New Issue
Block a user