diff --git a/comfy-ldtk/src/lib.rs b/comfy-ldtk/src/lib.rs index 6e551a0..bd0c238 100644 --- a/comfy-ldtk/src/lib.rs +++ b/comfy-ldtk/src/lib.rs @@ -129,8 +129,8 @@ impl LdtkEntityExtensions for EntityInstance { vec2( self.px[0] as f32, (layer_c_hei as f32 - 1.0) * grid_size - self.px[1] as f32, - ) / grid_size - + vec2(entity_size.x, -entity_size.y) / 2.0 + ) / grid_size + + vec2(entity_size.x, -entity_size.y) / 2.0 } fn world_size(&self, layer_grid_size: i64) -> Vec2 {