NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxSceneQueryExt.h Source File

NVIDIA PhysX SDK 3.4 API

PxSceneQueryExt.h

Go to the documentation of this file.
00001 // This code contains NVIDIA Confidential Information and is disclosed to you
00002 // under a form of NVIDIA software license agreement provided separately to you.
00003 //
00004 // Notice
00005 // NVIDIA Corporation and its licensors retain all intellectual property and
00006 // proprietary rights in and to this software and related documentation and
00007 // any modifications thereto. Any use, reproduction, disclosure, or
00008 // distribution of this software and related documentation without an express
00009 // license agreement from NVIDIA Corporation is strictly prohibited.
00010 //
00011 // ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES
00012 // NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
00013 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT,
00014 // MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.
00015 //
00016 // Information and code furnished is believed to be accurate and reliable.
00017 // However, NVIDIA Corporation assumes no responsibility for the consequences of use of such
00018 // information or for any infringement of patents or other rights of third parties that may
00019 // result from its use. No license is granted by implication or otherwise under any patent
00020 // or patent rights of NVIDIA Corporation. Details are subject to change without notice.
00021 // This code supersedes and replaces all information previously supplied.
00022 // NVIDIA Corporation products are not authorized for use as critical
00023 // components in life support devices or systems without express written approval of
00024 // NVIDIA Corporation.
00025 //
00026 // Copyright (c) 2008-2017 NVIDIA Corporation. All rights reserved.
00027 // Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
00028 // Copyright (c) 2001-2004 NovodeX AG. All rights reserved.  
00029 
00030 
00031 #ifndef PX_PHYSICS_EXTENSIONS_SCENE_QUERY_H
00032 #define PX_PHYSICS_EXTENSIONS_SCENE_QUERY_H
00033 
00037 #include "PxPhysXConfig.h"
00038 
00039 #include "PxScene.h"
00040 
00041 #if !PX_DOXYGEN
00042 namespace physx
00043 {
00044 #endif
00045 
00046 // These types have been deprecated (removed) in PhysX 3.4. We typedef them to the new types here for easy migration from 3.3 to 3.4.
00047 typedef PxQueryHit              PxSceneQueryHit;
00048 typedef PxQueryFilterData       PxSceneQueryFilterData;
00049 typedef PxQueryFilterCallback   PxSceneQueryFilterCallback;
00050 typedef PxQueryCache            PxSceneQueryCache;
00051 typedef PxHitFlag               PxSceneQueryFlag;
00052 typedef PxHitFlags              PxSceneQueryFlags;
00053 
00062 class PxSceneQueryExt
00063 {
00064 public:
00065 
00090     static bool raycastAny( const PxScene& scene,
00091                             const PxVec3& origin, const PxVec3& unitDir, const PxReal distance,
00092                             PxSceneQueryHit& hit, const PxSceneQueryFilterData& filterData = PxSceneQueryFilterData(),
00093                             PxSceneQueryFilterCallback* filterCall = NULL, const PxSceneQueryCache* cache = NULL,
00094                             PX_DEPRECATED PxClientID queryClient = PX_DEFAULT_CLIENT);
00095 
00121     static bool raycastSingle(  const PxScene& scene,
00122                                 const PxVec3& origin, const PxVec3& unitDir, const PxReal distance,
00123                                 PxSceneQueryFlags outputFlags, PxRaycastHit& hit,
00124                                 const PxSceneQueryFilterData& filterData = PxSceneQueryFilterData(),
00125                                 PxSceneQueryFilterCallback* filterCall = NULL, const PxSceneQueryCache* cache = NULL,
00126                                 PX_DEPRECATED PxClientID queryClient = PX_DEFAULT_CLIENT);
00127 
00158     static PxI32 raycastMultiple(   const PxScene& scene,
00159                                     const PxVec3& origin, const PxVec3& unitDir, const PxReal distance,
00160                                     PxSceneQueryFlags outputFlags,
00161                                     PxRaycastHit* hitBuffer, PxU32 hitBufferSize, bool& blockingHit,
00162                                     const PxSceneQueryFilterData& filterData = PxSceneQueryFilterData(),
00163                                     PxSceneQueryFilterCallback* filterCall = NULL, const PxSceneQueryCache* cache = NULL,
00164                                     PX_DEPRECATED PxClientID queryClient = PX_DEFAULT_CLIENT);
00165 
00193     static bool sweepAny(   const PxScene& scene,
00194                             const PxGeometry& geometry, const PxTransform& pose, const PxVec3& unitDir, const PxReal distance,
00195                             PxSceneQueryFlags queryFlags,
00196                             PxSceneQueryHit& hit,
00197                             const PxSceneQueryFilterData& filterData = PxSceneQueryFilterData(),
00198                             PxSceneQueryFilterCallback* filterCall = NULL,
00199                             const PxSceneQueryCache* cache = NULL,
00200                             PX_DEPRECATED PxClientID queryClient = PX_DEFAULT_CLIENT,
00201                             PxReal inflation = 0.0f);
00202 
00230     static bool sweepSingle(const PxScene& scene,
00231                             const PxGeometry& geometry, const PxTransform& pose, const PxVec3& unitDir, const PxReal distance,
00232                             PxSceneQueryFlags outputFlags,
00233                             PxSweepHit& hit,
00234                             const PxSceneQueryFilterData& filterData = PxSceneQueryFilterData(),
00235                             PxSceneQueryFilterCallback* filterCall = NULL,
00236                             const PxSceneQueryCache* cache = NULL,
00237                             PX_DEPRECATED PxClientID queryClient = PX_DEFAULT_CLIENT, PxReal inflation=0.0f);
00238 
00271     static PxI32 sweepMultiple( const PxScene& scene,
00272                                 const PxGeometry& geometry, const PxTransform& pose, const PxVec3& unitDir, const PxReal distance,
00273                                 PxSceneQueryFlags outputFlags, PxSweepHit* hitBuffer, PxU32 hitBufferSize, bool& blockingHit,
00274                                 const PxSceneQueryFilterData& filterData = PxSceneQueryFilterData(),
00275                                 PxSceneQueryFilterCallback* filterCall = NULL, const PxSceneQueryCache* cache = NULL,
00276                                 PX_DEPRECATED PxClientID queryClient = PX_DEFAULT_CLIENT, PxReal inflation = 0.0f);
00277 
00299     static PxI32 overlapMultiple(   const PxScene& scene,
00300                                     const PxGeometry& geometry, const PxTransform& pose,
00301                                     PxOverlapHit* hitBuffer, PxU32 hitBufferSize,
00302                                     const PxSceneQueryFilterData& filterData = PxSceneQueryFilterData(),
00303                                     PxSceneQueryFilterCallback* filterCall = NULL,
00304                                     PX_DEPRECATED PxClientID queryClient = PX_DEFAULT_CLIENT);
00305 
00326     static bool overlapAny( const PxScene& scene,
00327                             const PxGeometry& geometry, const PxTransform& pose,
00328                             PxOverlapHit& hit,
00329                             const PxSceneQueryFilterData& filterData = PxSceneQueryFilterData(),
00330                             PxSceneQueryFilterCallback* filterCall = NULL,
00331                             PX_DEPRECATED PxClientID queryClient = PX_DEFAULT_CLIENT);
00332 };
00333 
00334 #if !PX_DOXYGEN
00335 } // namespace physx
00336 #endif
00337 
00339 #endif


Copyright © 2008-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com