|
|
@ -62,7 +62,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com |
|
|
|
//for hack
|
|
|
|
//for hack
|
|
|
|
#include "plPhysX/plPXPhysical.h" |
|
|
|
#include "plPhysX/plPXPhysical.h" |
|
|
|
#include "plPhysX/plPXPhysicalControllerCore.h" |
|
|
|
#include "plPhysX/plPXPhysicalControllerCore.h" |
|
|
|
#include <NxCapsule.h> |
|
|
|
|
|
|
|
static plPhysical* GetPhysical(plSceneObject* obj) |
|
|
|
static plPhysical* GetPhysical(plSceneObject* obj) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (obj) |
|
|
|
if (obj) |
|
|
@ -309,10 +309,8 @@ void plExcludeRegionModifier::IMoveAvatars() |
|
|
|
int actualCount = plPXPhysicalControllerCore::GetControllersInThisSubWorld(phys->GetWorldKey(), numControllers, controllers); |
|
|
|
int actualCount = plPXPhysicalControllerCore::GetControllersInThisSubWorld(phys->GetWorldKey(), numControllers, controllers); |
|
|
|
|
|
|
|
|
|
|
|
for (int i=0;i<actualCount;i++) |
|
|
|
for (int i=0;i<actualCount;i++) |
|
|
|
{
|
|
|
|
{ |
|
|
|
NxCapsule cap; |
|
|
|
if (phys->OverlapWithController(controllers[i])) |
|
|
|
controllers[i]->GetWorldSpaceCapsule(cap); |
|
|
|
|
|
|
|
if(phys->OverlapWithCapsule(cap)) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
plSceneObject* so = plSceneObject::ConvertNoRef(controllers[i]->GetOwner()->ObjectIsLoaded()); |
|
|
|
plSceneObject* so = plSceneObject::ConvertNoRef(controllers[i]->GetOwner()->ObjectIsLoaded()); |
|
|
|
const plArmatureMod* constAvMod = (plArmatureMod*)so->GetModifierByType(plArmatureMod::Index()); |
|
|
|
const plArmatureMod* constAvMod = (plArmatureMod*)so->GetModifierByType(plArmatureMod::Index()); |
|
|
|