RigidBodies To Ignore Raycast

RigidBodies To Ignore Raycast

Imagen de Jose

Hey guys,

I am using the world to cast a ray.

world->castRay();

Is there a way for rigidbodies to ignore that raycast?

thanks.

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.
Imagen de Havok - Josh S.

Hi Jose,

You can get a raycast to ignore a particular set of rigid bodies using the shape collection filter in the raycast input. To use the filter, you'd first need to divide your rigid bodies into collision groups. You can then use the shape collection filter in your raycast input to specify which collision group(s) to consider. Please look at the Physics->API->Collide->Ray Casting->Ray Cast Filtering demos and at the Havok Physics Help under Interacting with a Simulation->Collision Filtering for some more details.

cheers,

Josh S. Havok Developer Support Engineer www.havok.com

Inicie sesión para dejar un comentario.