mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Change to aim properly in first rather than third.
This commit is contained in:
parent
bd91815ff4
commit
96c770dbb1
@ -399,6 +399,8 @@ impl PlayState for SessionState {
|
|||||||
(
|
(
|
||||||
is_aiming,
|
is_aiming,
|
||||||
if is_aiming && self.scene.camera().get_mode() == CameraMode::ThirdPerson {
|
if is_aiming && self.scene.camera().get_mode() == CameraMode::ThirdPerson {
|
||||||
|
Vec3::unit_z() * 0.025
|
||||||
|
} else if is_aiming {
|
||||||
let vel = (
|
let vel = (
|
||||||
&client.state().ecs().read_storage::<comp::Vel>(),
|
&client.state().ecs().read_storage::<comp::Vel>(),
|
||||||
&client.state().ecs().read_storage::<comp::PhysicsState>(),
|
&client.state().ecs().read_storage::<comp::PhysicsState>(),
|
||||||
@ -412,7 +414,7 @@ impl PlayState for SessionState {
|
|||||||
} else {
|
} else {
|
||||||
Vec3::zero()
|
Vec3::zero()
|
||||||
};
|
};
|
||||||
Vec3::unit_z() * 0.025 + vel
|
vel
|
||||||
} else {
|
} else {
|
||||||
Vec3::zero()
|
Vec3::zero()
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user