mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Fix for animated detector regions not actually animating (cleft bucket cloth, Er'cana harvester ladder)
This commit is contained in:
@ -837,10 +837,12 @@ void plPXPhysical::ISetTransformGlobal(const hsMatrix44& l2w)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GetProperty(plSimulationInterface::kPhysAnim))
|
// This used to check for the kPhysAnim flag, however animated detectors
|
||||||
{ hsAssert(fActor->readBodyFlag(NX_BF_KINEMATIC),"This Should be kinematic");
|
// 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);
|
fActor->moveGlobalPose(mat);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
fActor->setGlobalPose(mat);
|
fActor->setGlobalPose(mat);
|
||||||
}
|
}
|
||||||
|
@ -951,7 +951,7 @@ void plPXPhysicalControllerCore::HandleEnableChanged()
|
|||||||
// PHYSX FIXME - after re-enabling check to see if we are inside any convex hull detector regions
|
// PHYSX FIXME - after re-enabling check to see if we are inside any convex hull detector regions
|
||||||
hsPoint3 pos;
|
hsPoint3 pos;
|
||||||
IGetPositionSim(pos);
|
IGetPositionSim(pos);
|
||||||
plSimulationMgr::GetInstance()->UpdateDetectorsInScene(fWorldKey,GetOwner(),pos,fEnable);
|
plSimulationMgr::GetInstance()->UpdateDetectorsInScene(fWorldKey,GetOwner(),pos,fEnabled);
|
||||||
#endif // USE_PHYSX_CONVEXHULL_WORKAROUND
|
#endif // USE_PHYSX_CONVEXHULL_WORKAROUND
|
||||||
//IInformDetectors(true);
|
//IInformDetectors(true);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user