mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-05 05:20:31 +00:00
Changed method of releasing a physics body with physx 2.8
This commit is contained in:
parent
d0a64026b0
commit
8f550d5f8c
1 changed files with 2 additions and 3 deletions
|
|
@ -448,9 +448,8 @@ void PxWorld::releaseActor( NxActor &actor )
|
|||
// Clear the userdata.
|
||||
actor.userData = NULL;
|
||||
|
||||
// If the scene is not simulating then we have the
|
||||
// write lock and can safely delete it now.
|
||||
if ( !mIsSimulating )
|
||||
// actors are one of the few objects that are stable removing this way in physx 2.8
|
||||
if (mScene->isWritable() )
|
||||
{
|
||||
mScene->releaseActor( actor );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue