You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes rail difficulty-based height calculation in mesh_terrains.py (#3254)
# Description
The rail mesh terrain created terrains from hardest to easiest due to a
bug in how difficulty was used. This PR fixes that bug.
Before:
`rail_height = cfg.rail_height_range[1] - difficulty *
(cfg.rail_height_range[1] - cfg.rail_height_range[0])`
After:
`rail_height = cfg.rail_height_range[0] + difficulty *
(cfg.rail_height_range[1] - cfg.rail_height_range[0])`
## Type of change
- Bug fix (non-breaking change which fixes an issue)
## Checklist
- [X] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [ ] I have made corresponding changes to the documentation
- [X] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [X] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
Signed-off-by: Kyle Morgenstein <[email protected]>
Co-authored-by: Kelly Guo <[email protected]>
0 commit comments