PxPruningStructure Struct Reference
[Physics]
Pruning structure used to accelerate scene queries (raycast, sweep tests, etc).
More...
#include <PxSceneDesc.h>
Public Types | |
enum | Enum { eNONE, eDYNAMIC_AABB_TREE, eSTATIC_AABB_TREE, eLAST } |
Detailed Description
Pruning structure used to accelerate scene queries (raycast, sweep tests, etc).eNONE can be used without defining extra parameters. It typically doesn't provide fast scene queries, but on the other hand it doesn't consume much memory. It is useful when you don't use the SDK's scene queries at all.
eDYNAMIC_AABB_TREE usually provides the fastest queries. However there is a constant per-frame management cost associated with this structure. You have the option to give a hint on how much work should be done per frame by setting the parameter PxSceneDesc::dynamicTreeRebuildRateHint.
eSTATIC_AABB_TREE is typically used for static objects. It is the same as the dynamic AABB tree, without the per-frame overhead. This is the default choice for static objects. However, if you are streaming parts of the world in and out, you may want to use the dynamic version even for static objects.
Member Enumeration Documentation
The documentation for this struct was generated from the following file:
Copyright © 2008-2012 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com