Browse Source

Reintroduce a fun hack

Yeah, looks like PhysX 2.6.4 has a bug with spawning stuff inside of
regions. So, let's bring back the hack that spawns the avatar at -2000
feet. The link-in process will set the correct position on the controller
and fire the appropriate detectors.
Adam Johnson 12 years ago
parent
commit
fe5ad6d437
  1. 2
      Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp

2
Sources/Plasma/PubUtilLib/plAvatar/plPhysicalControllerCore.cpp

@ -70,7 +70,7 @@ plPhysicalControllerCore::plPhysicalControllerCore(plKey OwnerSceneObject, float
fMovementStrategy(nil), fMovementStrategy(nil),
fSimLength(0.0f), fSimLength(0.0f),
fLocalRotation(0.0f, 0.0f, 0.0f, 1.0f), fLocalRotation(0.0f, 0.0f, 0.0f, 1.0f),
fLocalPosition(0.0f, 0.0f, 0.0f), fLocalPosition(0.0f, 0.0f, -2000.0f),
fLastLocalPosition(0.0f, 0.0f, 0.0f), fLastLocalPosition(0.0f, 0.0f, 0.0f),
fLinearVelocity(0.0f, 0.0f, 0.0f), fLinearVelocity(0.0f, 0.0f, 0.0f),
fAchievedLinearVelocity(0.0f, 0.0f, 0.0f), fAchievedLinearVelocity(0.0f, 0.0f, 0.0f),

Loading…
Cancel
Save