How to get CollidablePair (CollidableReferences) from CollisionQuery result? #137
-
Hello, I got a question related to CollisionQuery functionality! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
When adding a job to the Often, this will look like setting up a list of the stuff you want to look up while you're adding tests to the collision batcher. In the |
Beta Was this translation helpful? Give feedback.
When adding a job to the
CollisionBatcher
, you provide apairId
. When theCollisionBatcher
finishes a test, it'll report the results alongside thepairId
associated with the test. That can be used to look up other information. TheCollisionBatcher
is otherwise blind to concepts like collidables and collidable references.Often, this will look like setting up a list of the stuff you want to look up while you're adding tests to the collision batcher. In the
CollisionQueryDemo
, this is thequeryWasTouched
buffer used to color the shapes, but it could contain any data.