Tweaked lantern offsets

This commit is contained in:
Joshua Barretto 2022-01-19 13:31:55 +00:00 committed by Imbris
parent fcd25648fe
commit 53574bb6ec
2 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@
),
map: {
"Green0": (
vox_spec: ("lantern.green-0", (-2.0, -2.0, -7.0)),
vox_spec: ("lantern.green-0", (-2.5, -2.0, -9.0)),
color: None
),
"Magic": (
@ -13,7 +13,7 @@
color: None
),
"Black0": (
vox_spec: ("lantern.black-0", (-2.0, -2.0, -8.5)),
vox_spec: ("lantern.black-0", (-2.5, -2.0, -8.5)),
color: None
),
"Red0": (
@ -21,7 +21,7 @@
color: None
),
"Blue0": (
vox_spec: ("lantern.blue-0", (-2.0, -2.0, -7.0)),
vox_spec: ("lantern.blue-0", (-2.5, -2.0, -8.0)),
color: None
),
"GeodePurp": (
@ -29,11 +29,11 @@
color: None
),
"PumpkinLantern": (
vox_spec: ("lantern.pumpkin", (-3.5, -4.0, -8.5)),
vox_spec: ("lantern.pumpkin", (-4.0, -4.0, -8.5)),
color: None
),
"PolarisLantern": (
vox_spec: ("lantern.polaris", (-3.0, -4.0, -9.5)),
vox_spec: ("lantern.polaris", (-3.5, -4.0, -8.5)),
color: None
),
},

View File

@ -145,7 +145,7 @@ impl Skeleton for CharacterSkeleton {
make_bone(control_mat * hand_l_mat * Mat4::<f32>::from(self.hold)),
];
Offsets {
lantern: Some((lantern_mat * Vec4::new(0.0, 0.0, -4.0, 1.0)).xyz()),
lantern: Some((lantern_mat * Vec4::new(0.0, 0.5, -6.0, 1.0)).xyz()),
// TODO: see quadruped_medium for how to animate this
mount_bone: Transform {
position: common::comp::Body::Humanoid(body)