mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Remove unnecessary interpolation cruft
This commit is contained in:
parent
157cd6cd14
commit
f33c12e976
@ -2,12 +2,9 @@ use crate::ecs::comp::Interpolated;
|
||||
use common::{
|
||||
comp::{object, Body, Ori, Pos, Vel},
|
||||
resources::DeltaTime,
|
||||
link::Is,
|
||||
mounting::Rider,
|
||||
uid::UidAllocator,
|
||||
};
|
||||
use common_ecs::{Job, Origin, Phase, System};
|
||||
use specs::{Entities, Join, Read, ReadStorage, WriteStorage, saveload::MarkerAllocator};
|
||||
use specs::{Entities, Join, Read, ReadStorage, WriteStorage};
|
||||
use tracing::warn;
|
||||
use vek::*;
|
||||
|
||||
@ -17,14 +14,12 @@ pub struct Sys;
|
||||
impl<'a> System<'a> for Sys {
|
||||
#[allow(clippy::type_complexity)]
|
||||
type SystemData = (
|
||||
Read<'a, UidAllocator>,
|
||||
Entities<'a>,
|
||||
Read<'a, DeltaTime>,
|
||||
ReadStorage<'a, Pos>,
|
||||
ReadStorage<'a, Ori>,
|
||||
ReadStorage<'a, Vel>,
|
||||
ReadStorage<'a, Body>,
|
||||
ReadStorage<'a, Is<Rider>>,
|
||||
WriteStorage<'a, Interpolated>,
|
||||
);
|
||||
|
||||
@ -34,10 +29,10 @@ impl<'a> System<'a> for Sys {
|
||||
|
||||
fn run(
|
||||
_job: &mut Job<Self>,
|
||||
(uid_allocator, entities, dt, positions, orientations, velocities, bodies, is_rider, mut interpolated): Self::SystemData,
|
||||
(entities, dt, positions, orientations, velocities, bodies, mut interpolated): Self::SystemData,
|
||||
) {
|
||||
// Update interpolated positions and orientations
|
||||
for (pos, ori, i, body, vel, is_rider) in (
|
||||
for (pos, ori, i, body, vel) in (
|
||||
&positions,
|
||||
&orientations,
|
||||
&mut interpolated,
|
||||
|
Loading…
Reference in New Issue
Block a user