RafaelBarbosatec / bonfire

(RPG maker) Create RPG-style or similar games more simply with Flame.
https://bonfire-engine.github.io
MIT License
1.18k stars 177 forks source link

[Bug]: Show wrong collision position with polyline collision from Tiled #495

Open vynln92 opened 3 months ago

vynln92 commented 3 months ago

What happened?

I created the tileset with Tiled and adding polyline collision to tile. I added to Bonfire project some collision show collectly. But for the polyline it placed in wrong position. Please check image below image

Steps to reproduce?

child: BonfireWidget(
        ...
        map: WorldMapByTiled(TiledAssetReader(asset: 'tiled/map3.json'),
            forceTileSize: Vector2(tileSize, tileSize),
            objectsBuilder: {
            }),

Assets: https://drive.google.com/drive/folders/1wj-Myc2ew6zbKVcpKTj-qVhBV1KEaOYW

What did you expect to happen?

I expected the polyline collision show placed in correct position as Tiled preview

Bonfire version

3.6.1

Relevant log output

No response

RafaelBarbosatec commented 3 months ago

Hi @vynln92 ! Thanks for this report. I'll analyze this case.