mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Remove PhysX Dependency from plExcludeRegionMod
This commit is contained in:
@ -1080,8 +1080,10 @@ void plPXPhysical::ExcludeRegionHack(bool cleared)
|
||||
plPXPhysicalControllerCore::RebuildCache();
|
||||
|
||||
}
|
||||
bool plPXPhysical::OverlapWithCapsule(NxCapsule& cap)
|
||||
bool plPXPhysical::OverlapWithController(const plPXPhysicalControllerCore* controller)
|
||||
{
|
||||
NxCapsule cap;
|
||||
controller->GetWorldSpaceCapsule(cap);
|
||||
NxShape* shape = fActor->getShapes()[0];
|
||||
return shape->checkOverlapCapsule(cap);
|
||||
}
|
||||
|
@ -182,9 +182,8 @@ public:
|
||||
// This weeds those out.
|
||||
bool IsDynamic() const;
|
||||
|
||||
//Hack to check if there is an overlap with the capsule
|
||||
//this partially for exclude regions vs avatar capsule
|
||||
virtual bool OverlapWithCapsule(NxCapsule& cap);
|
||||
//Hack to check if there is an overlap with the avatar controller
|
||||
bool OverlapWithController(const class plPXPhysicalControllerCore* controller);
|
||||
|
||||
virtual float GetMass() {return fMass;}
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user