Skip to content

0.20.0

Latest
Compare
Choose a tag to compare
@ManevilleF ManevilleF released this 11 Jan 14:03
· 3 commits to main since this release
37dfdbb

Changelog

HexLayout

  • (BREAKING) HexLayout Y axis is no longer inverted by default (#187)
  • HexLayout builder patter (#187)
  • (BREAKING) HexLayout removed the invert_x and invert_y fields (#190)
  • (BREAKING) HexLayout hex_size field is now scale (#190)
  • Added the following HexLayout methods: (#190)
    • transform_point
    • transform_vector
    • inverse_transform_point
    • inverse_transform_vector
    • invert_x
    • invert_y
  • Added HexLayout::with_rect_size to construct hexagons matching sprite dimensions (#194)
  • Added hex_edge_corners utility method (#170)

Mesh generation (#170, #198)

  • (BREAKING)ColumnMeshBuilder can now disable some side quads
  • (BREAKING) ColumnMeshBuilder and PlaneMeshBuilder now use a centralized
    FaceOptions for UV and inset options
  • Added PlaneMeshBuilder::with_face_options builder method
  • Added Face::apply_options taking a FaceOptions parameter
  • Renamed Quad::from_bottom to Quad::new
  • Added a new HeightMapMeshBuilder with its associated heightmap_builder example

Storage

  • Fixed HexagonalMap access returning values for indices out of bounds.
  • (BREAKING) Moved common methods of storage structs to a HexStore trait.
  • std::collections::HashMap<Hex, T> implements HexStore
  • All HexStore types now have the following methods:
    • values() which iterates on the stored values
    • values_mut() which iterates mutably on the stored values
    • (BREAKING) iter() which iterates on the key value pairs
    • (BREAKING) iter_mut() which iterates on the key value pairs with mutable reference to the value
  • Added the followin HexagonalMap methods:
    • len()
    • is_empty()

Misc

  • (BREAKING) HexOffsetMode now has only 2 variants Even and Odd
  • (BREAKING) Hex::to_offset_coordinates and Hex::from_offset_coordinates
    take a new HexOrientation parameter (#189)
  • Added world_unit_vector methods to EdgeDirection and VertexDirection (#190)
  • Orientation matrices are now glam::Mat2 (#191)
  • Added a resolutions_grid example (#199)
  • HexOrientation implements std::ops::Not (#199)
  • Improve documentation on bevy mesh generation (#200)

What's Changed

Full Changelog: 0.19.1...0.20.0