auto octree = scene_->GetComponent<Octree>();
Vector<Drawable*> result;
auto search_sphere = Sphere(bob->GetNode()->GetWorldPosition(), 10000.0);
SphereOctreeQuery query(result, search_sphere, DRAWABLE_ANY);
octree->GetDrawables(query);
here is my code, I add several node in scene, I try to use GetDrawables() to get objects near my character,but nomatter what I try, GetDrawables() only return one result, and it’s “Renderer2D”.
This function can’t find StaticSprite2D nor AnimatedSprite2D.
Did I misuse this function? can’t find any example in samples