X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_entity.h;fp=world_entity.h;h=eca698ad8bfaa7db84bc2d813f7f883e997e2ae5;hb=f014a592925b224f846d8adfc6559539fae1a096;hp=3baaa2385a591aac82a822e3ff719af234ee4e59;hpb=7eba38b8178c82040618a518634d8ff4813e2ff2;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_entity.h b/world_entity.h index 3baaa23..eca698a 100644 --- a/world_entity.h +++ b/world_entity.h @@ -19,11 +19,13 @@ VG_STATIC void entity_bh_expand_bound( void *user, boxf bound, u32 item_index ); VG_STATIC float entity_bh_centroid( void *user, u32 item_index, int axis ); VG_STATIC void entity_bh_swap( void *user, u32 ia, u32 ib ); VG_STATIC void entity_bh_debug( void *user, u32 item_index ); +VG_STATIC void entity_bh_closest( void *user, u32 item_index, v3f point, + v3f closest ); static bh_system bh_system_entity_list = { .expand_bound = entity_bh_expand_bound, .item_centroid = entity_bh_centroid, - .item_closest = NULL, + .item_closest = entity_bh_closest, .item_swap = entity_bh_swap, .item_debug = entity_bh_debug, .cast_ray = NULL