Again: please unset the "Interaction on move" field in the Draggable inspector, so that nothing is there - because it's still not clear if that's the source of the problem.
It also doesn't look like you have any mesh visible in the scene, as a child of the draggable - making it impossible to know in-game if it's actually moving. Is your "trashbox01" object visible?
The Draggable's position doesn't actually matter - it'll teleport itself to the StraightTrack when the scene begins anyway. However, since the trashbox is already at the StraightTrack - but still a child of the Draggable - then it'll be moved far away when the teleport occurs.
Clear the trashbox's position so that it always appears at the same point as the Draggable (which'll be snapped to the StraightTrack during gameplay).
Comments
Again: please unset the "Interaction on move" field in the Draggable inspector, so that nothing is there - because it's still not clear if that's the source of the problem.
It also doesn't look like you have any mesh visible in the scene, as a child of the draggable - making it impossible to know in-game if it's actually moving. Is your "trashbox01" object visible?
I am very sorry,but i dont get it working.Maybe its the position of the track.One end must be on the trashbox,right?
Thanks for help.
The Draggable's position doesn't actually matter - it'll teleport itself to the StraightTrack when the scene begins anyway. However, since the trashbox is already at the StraightTrack - but still a child of the Draggable - then it'll be moved far away when the teleport occurs.
Clear the trashbox's position so that it always appears at the same point as the Draggable (which'll be snapped to the StraightTrack during gameplay).
Finally made it.
Thanks.