- Home /
Question by
Rezano · Jul 19, 2013 at 05:30 PM ·
rigidbodycollidergun movement
I have problem with collider and rigidbody
i am working on test project which is FPS.
code has working fine with no error but since adding rigidbody and collider to gun
this error shows up
Actor::updateMassFromShapes: Compute mesh inertia tensor failed for one of the actor's mesh shapes! Please change mesh geometry or supply a tensor manually!
UnityEngine.Transform:set_parent(Transform)
GunScript:Update() (at Assets/Script/GunScript.cs:98)
and line 98 is:
holdMuzzelFlash.transform.parent = bulletSpawn.transform;
my gun is a empty game object with rigidbody and it has child named outsideBox which have box collider around the gun when i remove rigidbody and colider of gun,
game has no error
sorry for my bad english
Comment
Answer by cdrandin · Jul 19, 2013 at 05:36 PM
http://answers.unity3d.com/questions/7841/what-does-the-compute-mesh-inertia-tensor-failed-e.html
This might help.