Rigidbody on instantiated object not working.

Hello!

I instantiate an object and attempt to add a rigidbody to it, using this code.

skeleton = Instantiate(skeleton,myTransform.position,Quaternion.identity) as GameObject;
skeleton.animation.Blend("waitingforbattle");
var rb:Rigidbody;
rb = skeleton.AddComponent(Rigidbody);

I also have a simple terrain, and set the above myTransform to 100, just to make sure he is well above the terrain, and he falls through. I also tried to add a mesh collider to this object

var mc :MeshCollider;

mc = skeleton.AddComponent(MeshCollider);

and he still falls through the floor.

Why is it that the object keeps falling through the floor? What else do I need to add?

-Matt

Well MeshCollider to MeshCollider collisions are pretty rough, both have to be convex for it to work. I suggest you give the skeleton a capsule collider.