BlondeBurrito/bevy_flowfield_tiles_plugin

feat: reduce reliance on user end systems needing to always know map dimensions when calc-ing sector ids

Closed this issue · 0 comments

To send an EventPathRequest a user-end system needs to call get_sector_and_field_id_from_xy(...) or get_sector_and_field_cell_from_xyz(...) and supply the map dimensions. Having the user use a const or have to query something for map dimensions is clunky, find a way of incorporating those lookup dimensions into the MapDimensions component so that the user only needs to send the Vec2 or Vec3 actor position to get sector and field IDs