Attached actor causing Crash
I have a reliable crash whenever a player character, holding onto a dynamic actor, performs any kind of quick movement.
Since i mean for the actor to be maneuvered around the environment, I disable the physics and collision and attach it to the player character for transport about the environment. The crash seems to be collision related - as the log gives me a warning and using complex collision seems to fix the problem:
[2014.12.12-05.38.44:325]LogPhysics:Warning: PHYSX: ....\PhysXExtensions\src\ExtRigidBodyExt.cpp (234) 4 : computeMassAndInertia: Dynamic actor with illegal collision shapes [2014.12.12-05.38.44:325]LogPhysics:Warning: PHYSX: ....\PhysXExtensions\src\ExtRigidBodyExt.cpp (283) 4 : PxRigidBodyExt::updateMassAndInertia: Mass and inertia computation failed, setting mass to 1 and inertia to (1,1,1)
The collision I want to use is the box simplified collision that one can add to the static mesh and I don't understand why this would cause a problem. Also, I would prefer to not use complex collision since i expect that is expensive.
Thank you greatly for any help!
Using the physics handles instead of the attach feature worked brilliantly, thank you for the pointer and putting together so thorough a tutorial!
answered Dec 21 '14 at 02:16 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here