aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/PhysX/src/NpScene.cpp
diff options
context:
space:
mode:
authorSheikh Dawood Abdul Ajees <[email protected]>2017-09-15 15:41:57 -0500
committerSheikh Dawood Abdul Ajees <[email protected]>2017-09-15 15:41:57 -0500
commitd1c812f1162e5fdb13c215792725b2591d7428f5 (patch)
tree407056c45c7e9320c48fca6a3697d81a061c4ea0 /PhysX_3.4/Source/PhysX/src/NpScene.cpp
parentPhysX 3.4, APEX 1.4 patch release @22121272 (diff)
downloadphysx-3.4-d1c812f1162e5fdb13c215792725b2591d7428f5.tar.xz
physx-3.4-d1c812f1162e5fdb13c215792725b2591d7428f5.zip
PhysX 3.4.1, APEX 1.4.1 Release @22845541v3.4.1
Diffstat (limited to 'PhysX_3.4/Source/PhysX/src/NpScene.cpp')
-rw-r--r--PhysX_3.4/Source/PhysX/src/NpScene.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/PhysX_3.4/Source/PhysX/src/NpScene.cpp b/PhysX_3.4/Source/PhysX/src/NpScene.cpp
index 783436da..2afb7e08 100644
--- a/PhysX_3.4/Source/PhysX/src/NpScene.cpp
+++ b/PhysX_3.4/Source/PhysX/src/NpScene.cpp
@@ -136,6 +136,7 @@ NpScene::NpScene(const PxSceneDesc& desc) :
mHasSimulatedOnce (false),
mBetweenFetchResults (false)
{
+
mSceneExecution.setObject(this);
mSceneCollide.setObject(this);
mSceneAdvance.setObject(this);
@@ -143,6 +144,10 @@ NpScene::NpScene(const PxSceneDesc& desc) :
mTaskManager = mScene.getScScene().getTaskManagerPtr();
mThreadReadWriteDepth = Ps::TlsAlloc();
+#if PX_SUPPORT_GPU_PHYSX
+ updatePhysXIndicator();
+#endif
+
}
NpSceneQueries::~NpSceneQueries()
@@ -1555,6 +1560,16 @@ void NpScene::visualize()
}
}
+ if(getVisualizationParameter(PxVisualizationParameter::eCULL_BOX)!=0.0f)
+ {
+ const PxBounds3& cullbox = getScene().getVisualizationCullingBox();
+ if(!cullbox.isEmpty())
+ {
+ out << PxU32(PxDebugColor::eARGB_YELLOW);
+ out << Cm::DebugBox(cullbox);
+ }
+ }
+
#if PX_SUPPORT_PVD
mScene.getScenePvdClient().visualize(mRenderBuffer);
#endif
@@ -2625,7 +2640,7 @@ void NpScene::removeCloth(NpCloth& cloth)
void NpScene::updatePhysXIndicator()
{
- Ps::IntBool isGpu = 0;
+ Ps::IntBool isGpu = mScene.getScScene().isUsingGpuRigidBodies();
#if PX_USE_PARTICLE_SYSTEM_API
PxParticleBase*const* particleBaseList = mPxParticleBaseSet.getEntries();