Resetting rigidbodies' transform values

I have rigidbodies connected together. Having moved them ingame, is there a simple way to reset their position ingame using a script?

All rigidbodies are children of each other, so rb1 = child of rb0 and rb1 = connected to rb0 and so on using joints.

private var originalPosition : Vector3;

function Awake(){

originalPosition = rigidbody.transform.position;

}

function ResetRigidbody(){

rigidbody.transform.position = originalPosition;

}

Calls ResetRigidbody()