•using filter flags in RayResultCallback, m_collisionFilterGroup and m_collisionFilterMask
I'm having an issue,
I have a RigidBody that is part of the CF_UI group with a collision mask of CF_STATIC
Now I setup a RayTest (using closest callback) and set both
m_collisionFilterGroup and m_collisionFilterMask to CF_UI
Then I run the RayTest and Hit fails.
I can run the same Test and just place the Rigidbody in CF_DEFAULT with a mask of CF_ALL
and set m_collisionFilterGroup and m_collisionFilterMask to CF_DEFAULT and CF_ALL respectivally and a Hit is successful.
My goal is that my RayTest is optimized to only look through the CF_UI only.
I suspect I'm misusing the RayTest w/ ClosestRayCallback or that I'm overlooking something. Thanks!