public void UpdateOffset() { ApplyOffset(); if (back != null) { back.UpdateOffset(); } }
void OnMotionApplied() { //Apply the wagon's offset (this will recursively apply the offsets to the rest of the wagons in the chain) wagon.UpdateOffset(); }