Skip to content

Commit

Permalink
[#42] Boots over pants
Browse files Browse the repository at this point in the history
  • Loading branch information
Orchaldir committed Sep 23, 2023
1 parent 3048c2a commit c85f1a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rpg_tools_rendering/src/rendering/config/example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pub fn create_config() -> RenderConfig {
height_ankle: 0.02,
height_knee: 0.12,
height_sole: 0.02,
width_shaft: 1.0,
width_shaft: 1.05,
width_sole: 1.1,
},
pants: PantsConfig {
Expand Down
5 changes: 3 additions & 2 deletions rpg_tools_rendering/src/rendering/equipment/pants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ fn get_pants(
builder.add_mirrored_points(aabb, inner_width - balloon_extra, bottom_y, false);
}
BottomStyle::BootsOverPants => {
builder.add_mirrored_points(aabb, pants_width, bottom_y, false);
builder.add_mirrored_points(aabb, inner_width, bottom_y, false);
let padding = config.body.get_legs_width(body) * config.pants.width_padding;
builder.add_mirrored_points(aabb, pants_width - padding, bottom_y, true);
builder.add_mirrored_points(aabb, inner_width + padding, bottom_y, true);
}
BottomStyle::Sharp => {
builder.add_mirrored_points(aabb, pants_width, bottom_y, true);
Expand Down

0 comments on commit c85f1a9

Please sign in to comment.