I was working on a baby project in which a toy trains takes a block (typically a cube).
So I parented the block to the train and it moves perfectly from starting point to the stopping point.
At the stoping point I want this block to be un parented and start moving along a curve.
If I try to un parent it using Alt + P its jumps around as shown below: