thehankinator Posted February 27, 2016 Share Posted February 27, 2016 http://www.leadwerks.com/werkspace/page/api-reference/_/world/worldforeachvisibleentitydo-r506 The reference for World::ForEachVisibleEntityDo contains text referring to finding entities within an AABB but there is no AABB involved in this function. I suspect a copy/past error from World::ForEachEntityInAABBDo. See bold text below. Also the code example for this function creates an AABB (including comments about using it to find the entities) but never uses it. Parameters camera: the camera to test visibility with. callback: the function to call for each top-level entity found within the specified AABB. funcname: the name of the script function to call for each top-level entity found within the specified AABB. extra: an optional object that will be passed in the second parameter of the callback function. Remarks The callback function will only be called for the top-level entities who's recursive bounding boxes intersect the specified AABB. Your callback function should be written so that it is called recursively with the top-level entity's children. Link to comment Share on other sites More sharing options...
Josh Posted June 7, 2016 Share Posted June 7, 2016 Thanks, fixed! 1 My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts