RavEngine
Loading...
Searching...
No Matches
PxSceneQueryDesc.h
1// Redistribution and use in source and binary forms, with or without
2// modification, are permitted provided that the following conditions
3// are met:
4// * Redistributions of source code must retain the above copyright
5// notice, this list of conditions and the following disclaimer.
6// * Redistributions in binary form must reproduce the above copyright
7// notice, this list of conditions and the following disclaimer in the
8// documentation and/or other materials provided with the distribution.
9// * Neither the name of NVIDIA CORPORATION nor the names of its
10// contributors may be used to endorse or promote products derived
11// from this software without specific prior written permission.
12//
13// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
14// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
17// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24//
25// Copyright (c) 2008-2022 NVIDIA Corporation. All rights reserved.
26// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
27// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
28
29#ifndef PX_SCENE_QUERY_DESC_H
30#define PX_SCENE_QUERY_DESC_H
35#include "PxPhysXConfig.h"
36#include "geometry/PxBVHBuildStrategy.h"
37
38#if !PX_DOXYGEN
39namespace physx
40{
41#endif
42
43 class PxSceneQuerySystem;
44
73
99{
100 enum Enum
101 {
106
107 eLAST
108 };
109};
110
140
293
295 staticStructure (PxPruningStructureType::eDYNAMIC_AABB_TREE),
296 dynamicStructure (PxPruningStructureType::eDYNAMIC_AABB_TREE),
297 dynamicTreeRebuildRateHint (100),
298 dynamicTreeSecondaryPruner (PxDynamicTreeSecondaryPruner::eINCREMENTAL),
299 staticBVHBuildStrategy (PxBVHBuildStrategy::eFAST),
300 dynamicBVHBuildStrategy (PxBVHBuildStrategy::eFAST),
301 staticNbObjectsPerNode (4),
302 dynamicNbObjectsPerNode (4),
303 sceneQueryUpdateMode (PxSceneQueryUpdateMode::eBUILD_ENABLED_COMMIT_ENABLED)
304{
305}
306
311
322
323#if !PX_DOXYGEN
324} // namespace physx
325#endif
326
328#endif
Descriptor class for scene query system. See #PxSceneQuerySystem.
Definition PxSceneQueryDesc.h:145
PX_INLINE bool isValid() const
Returns true if the descriptor is valid.
Definition PxSceneQueryDesc.h:312
PxU32 dynamicNbObjectsPerNode
Number of objects per node for PxSceneQueryDesc::dynamicStructure.
Definition PxSceneQueryDesc.h:265
PxDynamicTreeSecondaryPruner::Enum dynamicTreeSecondaryPruner
Secondary pruner for dynamic tree.
Definition PxSceneQueryDesc.h:209
PxPruningStructureType::Enum dynamicStructure
Defines the structure used to store dynamic objects (non-PxRigidStatic actors).
Definition PxSceneQueryDesc.h:170
PxBVHBuildStrategy::Enum staticBVHBuildStrategy
Build strategy for PxSceneQueryDesc::staticStructure.
Definition PxSceneQueryDesc.h:221
PxPruningStructureType::Enum staticStructure
Defines the structure used to store static objects (PxRigidStatic actors).
Definition PxSceneQueryDesc.h:161
PxBVHBuildStrategy::Enum dynamicBVHBuildStrategy
Build strategy for PxSceneQueryDesc::dynamicStructure.
Definition PxSceneQueryDesc.h:233
PX_INLINE void setToDefault()
(re)sets the structure to the default.
Definition PxSceneQueryDesc.h:307
PxU32 dynamicTreeRebuildRateHint
Hint for how much work should be done per simulation frame to rebuild the pruning structures.
Definition PxSceneQueryDesc.h:194
PxSceneQueryUpdateMode::Enum sceneQueryUpdateMode
Defines the scene query update mode.
Definition PxSceneQueryDesc.h:274
PxU32 staticNbObjectsPerNode
Number of objects per node for PxSceneQueryDesc::staticStructure.
Definition PxSceneQueryDesc.h:249
PX_INLINE PxSceneQueryDesc()
constructor sets to default.
Definition PxSceneQueryDesc.h:294
#define PX_INLINE
Definition PxPreprocessor.h:320
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
Desired build strategy for bounding-volume hierarchies.
Definition PxBVHBuildStrategy.h:46
Enum
Definition PxBVHBuildStrategy.h:48
Secondary pruning structure used for newly added objects in dynamic trees.
Definition PxSceneQueryDesc.h:99
Enum
Definition PxSceneQueryDesc.h:101
@ eINCREMENTAL
incremental-BVH secondary pruner, faster query time, slower updates
Definition PxSceneQueryDesc.h:104
@ eNONE
no secondary pruner, new objects aren't visible to SQ for a few frames
Definition PxSceneQueryDesc.h:102
@ eBUCKET
bucket-based secondary pruner, faster updates, slower query time
Definition PxSceneQueryDesc.h:103
@ eBVH
PxBVH-based secondary pruner, good overall performance.
Definition PxSceneQueryDesc.h:105
Pruning structure used to accelerate scene queries.
Definition PxSceneQueryDesc.h:63
Enum
Definition PxSceneQueryDesc.h:65
@ eNONE
Using a simple data structure.
Definition PxSceneQueryDesc.h:66
@ eDYNAMIC_AABB_TREE
Using a dynamic AABB tree.
Definition PxSceneQueryDesc.h:67
@ eSTATIC_AABB_TREE
Using a static AABB tree.
Definition PxSceneQueryDesc.h:68
Scene query update mode.
Definition PxSceneQueryDesc.h:132
Enum
Definition PxSceneQueryDesc.h:134
@ eBUILD_DISABLED_COMMIT_DISABLED
No work is done, no update of scene queries.
Definition PxSceneQueryDesc.h:137
@ eBUILD_ENABLED_COMMIT_ENABLED
Both scene query build and commit are executed.
Definition PxSceneQueryDesc.h:135
@ eBUILD_ENABLED_COMMIT_DISABLED
Scene query build only is executed.
Definition PxSceneQueryDesc.h:136