From ef6937e69e8ee3f409cf9d460d5ad300a65d5924 Mon Sep 17 00:00:00 2001 From: sschirm Date: Fri, 23 Dec 2016 14:20:36 +0100 Subject: PhysX 3.4 / APEX 1.4 release candidate @21506124 --- PhysX_3.4/Source/SceneQuery/src/SqBounds.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'PhysX_3.4/Source/SceneQuery/src/SqBounds.h') diff --git a/PhysX_3.4/Source/SceneQuery/src/SqBounds.h b/PhysX_3.4/Source/SceneQuery/src/SqBounds.h index 60c6ad6f..cd40ece6 100644 --- a/PhysX_3.4/Source/SceneQuery/src/SqBounds.h +++ b/PhysX_3.4/Source/SceneQuery/src/SqBounds.h @@ -51,13 +51,16 @@ namespace Sq extern const ComputeBoundsFunc gComputeBoundsTable[2]; + // PT: TODO: - check that this is compatible with Gu::computeBounds(..., SQ_PRUNER_INFLATION, ...) + // PT: TODO: - refactor with "inflateBounds" in GuBounds.cpp if possible + // PT: TODO: - use SQ_PRUNER_INFLATION instead of hardcoding "0.01f" PX_FORCE_INLINE void inflateBounds(PxBounds3& dst, const PxBounds3& src) { using namespace physx::shdfnd::aos; const Vec4V minV = V4LoadU(&src.minimum.x); const Vec4V maxV = V4LoadU(&src.maximum.x); - const Vec4V eV = V4Scale(V4Sub(maxV, minV), FLoad(0.5f* 0.01f)); + const Vec4V eV = V4Scale(V4Sub(maxV, minV), FLoad(0.5f * 0.01f)); V4StoreU(V4Sub(minV, eV), &dst.minimum.x); PX_ALIGN(16, PxVec4) max4; -- cgit v1.2.3