1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

The real Relto plunge fix...

Hack. PhysX is going away, so I'm not going to expend a lot of effort on
making a technically correct fix.
This commit is contained in:
2012-04-12 21:52:58 -04:00
parent d2a1350e8b
commit c8873a9082

View File

@ -483,7 +483,7 @@ NxScene* scene = plSimulationMgr::GetInstance()->GetScene(fWorldKey);
NxCapsuleControllerDesc desc;
desc.position.x = 0;
desc.position.y = 0;
desc.position.z = 0;
desc.position.z = -10000; // No one should be building down there... (-2000 is kickable limit)
desc.upDirection = NX_Z;
desc.slopeLimit = kSLOPELIMIT;
desc.skinWidth = kPhysxSkinWidth;
@ -531,7 +531,9 @@ NxScene* scene = plSimulationMgr::GetInstance()->GetScene(fWorldKey);
fKinematicActor->raiseActorFlag(NX_AF_DISABLE_COLLISION);
#endif
// set the matrix to be the same as the controller's actor... that should orient it to be the same
fKinematicActor->moveGlobalPose(actor->getGlobalPose());
// PhysX HACK TURD: Sometimes, using the ***wrong*** function is desirable...
// Changing this to moveGlobalPose will cause camera regions to fire before linking in.
fKinematicActor->setGlobalPose(actor->getGlobalPose());
// the proxy for the debug display
//hsAssert(!fProxyGen, "Already have proxy gen, double read?");