You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#As far as I can tell, Space does not expose any mechanism to query for shapes/bodies in an area (cpSpaceBBQuery in the C version). Is it possible to access the BBTree for a Space (even if it is read-only) for calculating things like field-of-view for a game, or could a BBQuery function be added?
The text was updated successfully, but these errors were encountered:
This is important for my use-case to calculate bodies in a player's field of view to reduce networking and enforce visibility limits (prevent cheating).
It looks like I missed that method because Chipmunk2D doesn't use it in any of the examples. Anything in the C lib should be in this port, so feel free to put up a PR or I probably can get around to it this week.
#As far as I can tell,
Space
does not expose any mechanism to query for shapes/bodies in an area (cpSpaceBBQuery
in the C version). Is it possible to access theBBTree
for aSpace
(even if it is read-only) for calculating things like field-of-view for a game, or could a BBQuery function be added?The text was updated successfully, but these errors were encountered: