Minor cleanup

master
Mark 2023-12-25 08:31:20 -08:00
parent b7d12ac875
commit 3b41739b0f
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
2 changed files with 3 additions and 5 deletions

View File

@ -14,7 +14,7 @@ impl Spriteable for Doodad {
return Sprite { return Sprite {
texture: self.sprite.clone(), texture: self.sprite.clone(),
pos: self.pos, pos: self.pos,
angle: Deg { 0: 0.0 }, angle: Deg(0.0),
scale: 1.0, scale: 1.0,
height: self.height, height: self.height,
parallax: self.parallax, parallax: self.parallax,

View File

@ -14,7 +14,7 @@ impl PhysBody {
pos, pos,
vel: (0.0, 0.0).into(), vel: (0.0, 0.0).into(),
mass: 0.3, mass: 0.3,
angle: Deg { 0: 0.0 }, angle: Deg(0.0),
}; };
} }
@ -43,9 +43,7 @@ impl PhysBody {
// Wrap angles // Wrap angles
if self.angle.0.abs() > 180.0 { if self.angle.0.abs() > 180.0 {
self.angle -= Deg { self.angle -= Deg(self.angle.0.signum() * 360.0);
0: self.angle.0.signum() * 360.0,
};
} }
} }
} }