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.
Could you provide some screenshots of the blueprint setup you’re using to pick up the object? I have this Physics Handle setup in my testbed but no matter how fast I move objects around I don’t receive a crash.
Also, it looks like your callstack and logs didn’t upload with your previous post. Try zipping them before you attach.
Ill definitely give that tutorial a go, I haven’t seen this before and it handles things in a very different manner.
In the meantime, I’ve attached more of my blueprints and the logs in zip form.
Of interest: I’ve discovered that disabling collision before attaching the component (and re-enabling collision when i detach it) seems to fix the issue. Unfortunately, this isn’t practical since i can then force the object through the environment while its being held but it is perhaps diagnostically useful.
I haven’t been able to reproduce your setup yet. It looks like you are using a Tractor Beam ‘Mesh’ attached to the character and these functions use the overlap info with physics objects, correct? Also, how are you triggering the functions in the Eventgraph?
tractor beam and tractor origin are capsule components that i use to determine what can be ‘grabbed’ and where to go respectively (They are the volumes that you see in the ingame screenshots.) They are attached to a tick event that will activate only if nothing is grabbed at the moment and i activate the beam by disabling or enabling the collision on ‘tractor beam’.
Attached is the event graph setup, I based the entire thing off of the spaceship/ufo from the content examples.