We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ecs_octreen_findn
Reproduction: https://github.com/retroswan/flecs-physics-bug
Creating a system with this signature:
ECS_SYSTEM(world, CollisionsSystem, EcsPreUpdate, EcsPosition3, (EcsSpatialQuery, AABB), (EcsSpatialQueryResult, AABB));
With this code:
void CollisionsSystem(ecs_iter_t* it) { EcsPosition3* p = ecs_term(it, EcsPosition3, 1); EcsSpatialQuery* q = ecs_term(it, EcsSpatialQuery, 2); EcsSpatialQueryResult* r = ecs_term(it, EcsSpatialQueryResult, 3); for(int i = 0; i < it->count; i++) { ecs_octree_findn(q[i].query, &p[i], 4, &r[i].results); for(int j = 0; j < r[i].results->count; j++) { // } } }
Will result in a segfault when calling ecs_octree_findn.
ecs_octree_findn
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reproduction:
https://github.com/retroswan/flecs-physics-bug
Creating a system with this signature:
With this code:
Will result in a segfault when calling
ecs_octree_findn
.The text was updated successfully, but these errors were encountered: