YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
21 stars 8 forks source link

A point overlap function for physics fixtures #4098

Open iampremo opened 1 year ago

iampremo commented 1 year ago

Ticket #201492 Feature Type: feat_addition_ingame Description: There exists a helpful function named physics_test_overlap that tests whether two fixtures would overlap under specific conditions. It would be useful to have a similar function, but for a point in 2d space. Something akin to position_meeting but for checking physics shapes rather than the bounding box. If there is a proper way to check physics overlap at a specific x,y then i cannot find it in the documentation, so it must be adressed regardless. Benefit: I make use of overlaping physics objects across different collision groups for the logic in my game. The only workaround I've found for this is using the tiniest possible circle for a physics fixture so to pretend it's a point. Link:

KeeVeeGames commented 3 months ago

May be partially resolved by physics raycasts #2762