Physics Warning "WriteLock is still acquired"
by Stefano Santo Sabato · in Game Mechanics Kit · 02/20/2013 (8:16 am) · 0 replies
Hi,
I've a problem with PhysicsShape.
I try to setting datablock and position with setDataBlock and setTransform methods but sometimes appears a warning:
PhysX Error:
D:swphysxPhysXSDK2.8.4trunkSDKsPhysicssrcNpActor.cpp(412) : PhysicsSDK: NpActor::addForceAtPos: WriteLock is still acquired. Procedure call skipped to avoid a deadlock!
This is the code:
sceneOwner->inspectPreApply();
sceneOwner->setTransform(mat);
sceneOwner->inspectPostApply();
obj->inspectPreApply();
obj->setDataBlock(pData);
obj->inspectPostApply();
Help me!
I've a problem with PhysicsShape.
I try to setting datablock and position with setDataBlock and setTransform methods but sometimes appears a warning:
PhysX Error:
D:swphysxPhysXSDK2.8.4trunkSDKsPhysicssrcNpActor.cpp(412) : PhysicsSDK: NpActor::addForceAtPos: WriteLock is still acquired. Procedure call skipped to avoid a deadlock!
This is the code:
sceneOwner->inspectPreApply();
sceneOwner->setTransform(mat);
sceneOwner->inspectPostApply();
obj->inspectPreApply();
obj->setDataBlock(pData);
obj->inspectPostApply();
Help me!