Browse Source

Fix for animated detector regions ... (cherry picked from commit 057566416b)

Date:   Mon May 9 15:30:27 2011 -0400

    Fix for animated detector regions not actually animating (cleft bucket cloth, Er'cana harvester ladder)
rarified/vs2003buildtargets
Adam Johnson 4 years ago committed by rarified
parent
commit
c99bf23af4
  1. 7
      MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plPhysX/plPXPhysical.cpp

7
MOULOpenSourceClientPlugin/Plasma20/Sources/Plasma/PubUtilLib/plPhysX/plPXPhysical.cpp

@ -855,8 +855,11 @@ void plPXPhysical::ISetTransformGlobal(const hsMatrix44& l2w)
}
}
if (GetProperty(plSimulationInterface::kPhysAnim))
{ hsAssert(fActor->readBodyFlag(NX_BF_KINEMATIC),"This Should be kinematic");
// This used to check for the kPhysAnim flag, however animated detectors
// are also kinematic but not kPhysAnim, therefore, this would break on PhysX
// SDKs (yes, I'm looking at you, 2.6.4) that actually obey the ***GlobalPose
// rules set forth in the SDK documentation.
if(fActor->readBodyFlag(NX_BF_KINEMATIC))
fActor->moveGlobalPose(mat);
}
else

Loading…
Cancel
Save