mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Fix Gira basket explosions
Tweak the GZ marker detector region fix to only wake up kinematic detector regions... waking up regular dynamic actors before we position them causes bad things to happen.
This commit is contained in:
@ -827,7 +827,12 @@ void plPXPhysical::ApplyHitForce()
|
|||||||
void plPXPhysical::ISetTransformGlobal(const hsMatrix44& l2w)
|
void plPXPhysical::ISetTransformGlobal(const hsMatrix44& l2w)
|
||||||
{
|
{
|
||||||
hsAssert(fActor->isDynamic(), "Shouldn't move a static actor");
|
hsAssert(fActor->isDynamic(), "Shouldn't move a static actor");
|
||||||
fActor->wakeUp();
|
|
||||||
|
// If we wake up normal dynamic actors, they might explode.
|
||||||
|
// However, kinematics won't update if they are asleep. Thankfully, kinematics don't
|
||||||
|
// explode, move, or cause spontaneous nuclear warfare.
|
||||||
|
if (fActor->readBodyFlag(NX_BF_KINEMATIC))
|
||||||
|
fActor->wakeUp();
|
||||||
|
|
||||||
NxMat34 mat;
|
NxMat34 mat;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user