update to parser changes

This commit is contained in:
Robin Appelman 2022-05-16 20:13:39 +02:00
commit e100f6a732
2 changed files with 248 additions and 185 deletions

427
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -161,15 +161,15 @@ impl MessageHandler for PovAnalyzer {
if self.is_pov { if self.is_pov {
self.positions.pitch.push(Key::new( self.positions.pitch.push(Key::new(
tick as f32, tick as f32,
meta.view_angles.local_angles.1.y, meta.view_angles[0].local_angles.y,
Interpolation::CatmullRom, Interpolation::CatmullRom,
)); ));
self.positions.yaw.push(Key::new( self.positions.yaw.push(Key::new(
tick as f32, tick as f32,
meta.view_angles.local_angles.1.x, meta.view_angles[0].local_angles.x,
Interpolation::CatmullRom, Interpolation::CatmullRom,
)); ));
let pos = map_coords(meta.view_angles.origin.1); let pos = map_coords(meta.view_angles[0].origin);
self.positions.positions.push(Key::new( self.positions.positions.push(Key::new(
tick as f32, tick as f32,
vec3(pos[0], pos[1] + self.view_offset, pos[2]), vec3(pos[0], pos[1] + self.view_offset, pos[2]),