using OnTriggerEnter, char falls thru respawn point

So I have a cube that I stretched out under my racetrack to catch my character when it falls off the track. For my character, I’m using a character controller. For the cube, I’m using a box collider. I also have a respawn point located on the track that’s a cylinder that also uses a box collider. I have attached the following code to my cube to catch my character (and I dragged the cylinder in as the Spawn):

var spawn : Transform; //drag spawn point to here in the inspector

function OnTriggerEnter(other : Collider)
{
if (other.tag == “Player”)
{
other.transform.position = spawn.position;
}
}

Now here’s the problem. When my character respawns, it is taken to the general area of the cylinder, but it immediately falls through it and falls through the track. I don’t understand why this would be because both hold him just fine when the game starts out. The track has a mesh collider. Also, just to try some things, I attempted moving the cylinder up above the track–didn’t help. Any ideas? Thanks.

Just posting as answer now for others to benefit. Make sure that your collider is spawning above the track collider, you can see this by pausing the game when the respawning is done and see the state.

As for the other problem. Try to disable the Mesh Renderer on the cylinder (my guess is that you don’t want to show it) and then make sure that your character has no collider, charactercontroller or rigidbody (these could be attached to the Root object if needed). Then you would have the character as a child of the “Player Object”