From 3cc1861221d761b7f0301b9b61de4e1aa18c09f4 Mon Sep 17 00:00:00 2001 From: Sheikh Dawood Abdul Ajees Date: Mon, 20 Nov 2017 11:35:52 -0600 Subject: PhysX 3.4.1, APEX 1.4.1 Release @23131702 --- PhysX_3.4/Source/PhysXExtensions/src/ExtFixedJoint.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'PhysX_3.4/Source/PhysXExtensions/src/ExtFixedJoint.cpp') diff --git a/PhysX_3.4/Source/PhysXExtensions/src/ExtFixedJoint.cpp b/PhysX_3.4/Source/PhysXExtensions/src/ExtFixedJoint.cpp index bee99ed2..980721c1 100644 --- a/PhysX_3.4/Source/PhysXExtensions/src/ExtFixedJoint.cpp +++ b/PhysX_3.4/Source/PhysXExtensions/src/ExtFixedJoint.cpp @@ -93,14 +93,17 @@ void FixedJointVisualize(PxConstraintVisualizer& viz, const void* constantBlock, const PxTransform& body0Transform, const PxTransform& body1Transform, - PxU32 /*flags*/) + PxU32 flags) { - const FixedJointData& data = *reinterpret_cast(constantBlock); + if(flags & PxConstraintVisualizationFlag::eLOCAL_FRAMES) + { + const FixedJointData& data = *reinterpret_cast(constantBlock); - const PxTransform& t0 = body0Transform * data.c2b[0]; - const PxTransform& t1 = body1Transform * data.c2b[1]; + const PxTransform& t0 = body0Transform * data.c2b[0]; + const PxTransform& t1 = body1Transform * data.c2b[1]; - viz.visualizeJointFrames(t0, t1); + viz.visualizeJointFrames(t0, t1); + } } -- cgit v1.2.3