Main Page Class List Class Members

NvBlastExtApexSharedParts.h
Go to the documentation of this file.
1 // This code contains NVIDIA Confidential Information and is disclosed to you
2 // under a form of NVIDIA software license agreement provided separately to you.
3 //
4 // Notice
5 // NVIDIA Corporation and its licensors retain all intellectual property and
6 // proprietary rights in and to this software and related documentation and
7 // any modifications thereto. Any use, reproduction, disclosure, or
8 // distribution of this software and related documentation without an express
9 // license agreement from NVIDIA Corporation is strictly prohibited.
10 //
11 // ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES
12 // NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
13 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT,
14 // MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.
15 //
16 // Information and code furnished is believed to be accurate and reliable.
17 // However, NVIDIA Corporation assumes no responsibility for the consequences of use of such
18 // information or for any infringement of patents or other rights of third parties that may
19 // result from its use. No license is granted by implication or otherwise under any patent
20 // or patent rights of NVIDIA Corporation. Details are subject to change without notice.
21 // This code supersedes and replaces all information previously supplied.
22 // NVIDIA Corporation products are not authorized for use as critical
23 // components in life support devices or systems without express written approval of
24 // NVIDIA Corporation.
25 //
26 // Copyright (c) 2016-2020 NVIDIA Corporation. All rights reserved.
27
28
29 #ifndef NVBLASTEXTAPEXSHAREDPARTS_H
30 #define NVBLASTEXTAPEXSHAREDPARTS_H
31
32 #include "NvBlast.h"
33 #include <PxPlane.h>
34 namespace physx
35 {
36 class PxVec3;
37 class PxTransform;
38 class PxBounds3;
39 }
40
41 namespace Nv
42 {
43 namespace Blast
44 {
45
46 struct Separation
47 {
48 physx::PxPlane plane;
49 float min0, max0, min1, max1;
50
51 float getDistance()
52 {
53 return physx::PxMax(min0 - max1, min1 - max0);
54 }
55 };
56
60 bool importerHullsInProximityApexFree( uint32_t hull0Count, const physx::PxVec3* hull0, physx::PxBounds3& hull0Bounds, const physx::PxTransform& localToWorldRT0In, const physx::PxVec3& scale0In,
61 uint32_t hull1Count, const physx::PxVec3* hull1, physx::PxBounds3& hull1Bounds, const physx::PxTransform& localToWorldRT1In, const physx::PxVec3& scale1In,
62 physx::PxF32 maxDistance, Separation* separation);
63
64 } // namespace Blast
65 } // namespace Nv
66
67
68 #endif // NVBLASTEXTAPEXSHAREDPARTS_H
physx
Definition: NvBlastExtApexSharedParts.h:34
NvBlast.h
Nv::Blast::importerHullsInProximityApexFree
bool importerHullsInProximityApexFree(uint32_t hull0Count, const physx::PxVec3 *hull0, physx::PxBounds3 &hull0Bounds, const physx::PxTransform &localToWorldRT0In, const physx::PxVec3 &scale0In, uint32_t hull1Count, const physx::PxVec3 *hull1, physx::PxBounds3 &hull1Bounds, const physx::PxTransform &localToWorldRT1In, const physx::PxVec3 &scale1In, physx::PxF32 maxDistance, Separation *separation)
Nv::Blast::Separation
Definition: NvBlastExtApexSharedParts.h:46
Nv
Definition: NvBlastArray.h:37
Nv::Blast::Separation::min1
float min1
Definition: NvBlastExtApexSharedParts.h:49
Nv::Blast::Separation::plane
physx::PxPlane plane
Definition: NvBlastExtApexSharedParts.h:48
Nv::Blast::Separation::getDistance
float getDistance()
Definition: NvBlastExtApexSharedParts.h:51