Skip to content

Filter group #176

Answered by RossNordby
ViachaslauBusel asked this question in Q&A
Discussion options

You must be logged in to vote

IRayHitHandler has an AllowTest callback that is called before doing any testing. It passes in a collidable reference you can use to look up filter data.

Exactly how the filtering data is stored or computed is up to you. It can be helpful to have a mapping from collidable reference to other data- CollidableProperty<T> is a helper class that exists for that purpose. For example, to implement narrow phase pair filtering, the ragdoll demo uses it:

public CollidableProperty<SubgroupCollisionFilter> CollisionFilters;
.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ViachaslauBusel
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