3D objects are not following drawn line from the more height

Hi Team,
I’m implementing a feature as Walk-Through where i’m drawing a line and putting an object to walk through the line. It’s working fine if i’m drawing path from the less height but if i’m drawing the line from the more heights object is not following the path means it’s misplaced from the path. A view is given bellow on the attached screen shots.
Please provide any solution to solve the problem
NoFollowingPath

Thanks

Hi @Shashi

Is clamping enabled for either of these entities? It would be helpful if you could provide a Sandcastle that can reproduce this issue.

Thanks,
Sam.