PhysX Question about Raycasting - Setting the shape masks

Posted by sweet tv on Stack Overflow See other posts from Stack Overflow or by sweet tv
Published on 2010-03-18T06:50:19Z Indexed on 2010/03/18 6:51 UTC
Read the original article Hit count: 379

Filed under:
|

I am trying to make the raycast give me the distance of the terrain and nothing else. But I'm not sure how to use the group Mask Filter.

virtual NxShape*                    raycastClosestShape     (const NxRay& worldRay, NxShapesType shapeType, NxRaycastHit& hit, NxU32 groups=0xffffffff, NxReal maxDist=NX_MAX_F32, NxU32 hintFlags=0xffffffff, const NxGroupsMask* groupsMask=NULL, NxShape** cache=NULL) const = 0;

\param[in] groups Mask used to filter shape objects.

Let's say my terrain is set in group 1. How would I use the function above?

© Stack Overflow or respective owner

Related posts about physx

Related posts about c++