Compute mesh inertia tensor failed...

Hi,

Im keeping getting this warning, but i cant seem to understand it. whats wrong with mesh???

Actor::updateMassFromShapes: Compute mesh inertia tensor failed for one of the actor’s mesh shapes! Please change mesh geometry or supply a tensor manually!

thanks

Usually that happens when trying to use a rigidbody on an open mesh collider. Generally you don’t want to use rigidbodies on mesh colliders anyway.

–Eric

but im using a rigidbody on a empty gameobject!

that empty has some meshes inside.

still works the same way???

So they have mesh colliders? As I said, you don’t to use rigidbodies with mesh colliders.

–Eric

soo i cannot use mesh colliders, but i can use box collider or some other collider?

Yes.

–Eric

thanks it’s working :slight_smile:

is there any way to use a rigidbody with a mesh collider? I have a strange peace of geometry that needs to use a strange collider shape that is nevertheless less complicated than the model mesh. It gives me the same error as above when I try.

Use a compound primitive collider. If necessary you can use a convex mesh collider (or a compound collider made of convex mesh colliders).

–Eric