Skip to content

Behavior of PhysX Scene Queries with Actors Having Multiple Geometries #258

Answered by PierreTerdiman
andreiltd asked this question in Q&A
Discussion options

You must be logged in to vote

When performing scene queries like raycasts or spherecasts against actors with multiple geometries, does PhysX test all geometries attached to the actor by default?

Yes.

How does PhysX determine which geometry to use in these queries? Is the first hit geometry always chosen, or are all geometries considered?

All geometries are considered. Without extra information the scene query does not know if the geometries are used to model a complex shape as part of a compound actor, or if the geometries are used to model the same simple shape but for different sub-systems. So by default it considers all of them. It first tests their (axis-aligned) bounding boxes, and if the query touches these, it …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andreiltd
Comment options

Answer selected by andreiltd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants