Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

Chunks despawn when moving camera #187

Open
mjhouse opened this issue Nov 24, 2021 · 6 comments
Open

Chunks despawn when moving camera #187

mjhouse opened this issue Nov 24, 2021 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@mjhouse
Copy link

mjhouse commented Nov 24, 2021

Bevy Tilemap version

commit: 474bd2f

Operating system & version

Ubuntu 20.04

What you did

Modified hex_tile_odd_rows example to allow panning and zooming (re-scaling).

What you expected to happen

The view can be panned/zoomed, and the map remains static.

What actually happened

All chunks except (0,0) de-spawned immediately.

Additional information

bevy_tilemap_camera_chunks_bug

@mjhouse mjhouse added the bug Something isn't working label Nov 24, 2021
@mjhouse mjhouse changed the title Chunks disappear while using camera Chunks despawn when moving camera Nov 25, 2021
@joshuajbouw
Copy link
Owner

This should just be related to how the example is programmed though? Not the actual logic of the code itself?

@mjhouse
Copy link
Author

mjhouse commented Dec 11, 2021

@joshuajbouw Sorry for the late reply, I didn't see the notification. I'm not sure about the logic. Nothing I saw seemed to account for the despawn, but at this point my memory is a little fuzzy. When I get a chance, I'll try to reproduce this and verify that it's not a mistake on my part.

@joshuajbouw
Copy link
Owner

The despawn happens since I believe that auto spawn is on which would handle spawning / despawning of chunks.

@mjhouse
Copy link
Author

mjhouse commented Dec 11, 2021

Would auto spawn despawn chunks on transformation? Is that expected behavior?

@joshuajbouw
Copy link
Owner

It can yeah, camera movement, what it can see. Basically.

@mjhouse
Copy link
Author

mjhouse commented Dec 11, 2021

Oh ok, that's good to know. I've only been working with single chunks for now, but I'm going to get into much larger maps later.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants