Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to prevent collision Between Entities spawning in the same frame #365

Open
IronGremlin opened this issue May 29, 2024 · 0 comments
Open

Comments

@IronGremlin
Copy link

Entities created with a collider will not be queryable via the spatial index during the frame in which they are created unless one both manually calls SpatialQuery::update_pipeline (which is fairly well documented), AND adds a Position and Rotation component (which AFAICT is not at all documented).

FWIW, I'm not terribly sure where the best place to document that would be, but from my (admittedly limited) perspective it seems like update_pipeline should just kind of do this backfill for you - would you be open to a PR to that effect, or have I misunderstood the purpose of this function?

If that's not a good idea, and we can't figure out a sensible place to put a warning label (or if I am just an idiot and this warning label already exists and I just didn't see it), then a closed issue like this one would've saved me a good 4-5 hours worth of head scratching, so, no hard feelings if you want to toss this in the bin as "closed won't fix."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant