Problem with Ar fundation

Hello everyone.
I have a problem with the AR foundation, which I have been trying to solve for some time. If anyone knows the solution to the problem, please let me know.

When I start the app it recognizes the floor (picture no. 1).

The input is spawn object at the point where the blue circle is (picture no. 2).
.
When a simple object such as a cube is spawn, there are no problems, the cube always stays in the same position and is fixed, but the problem is seen when more than one object is spawn on the scene (picture no. 3).

I know that if I want to spawn multiple objects one object must be the main parrent. In this case it is the same cube. So the cube is parrent, terrain, and the environment is the children of that cube (picture no. 4).

The code of the sleeping object (picture no. 5).
So the problem is - when I have to spawn more than one object on scene, there is a conflict. Either my objects move, or they move away from the camera when I walk towards them, etc …

,Hello everyone.
I have a problem with the AR foundation, which I have been trying to solve for some time. If anyone knows the solution to the problem, please let me know.

When I start the app it recognizes the floor (picture no. 1).
The input is spawn object at the point where the blue circle is (picture no. 2).
When a simple object such as a cube is spawn, there are no problems, the cube always stays in the same position and is fixed, but the problem is seen when more than one object is spawn on the scene (picture no. 3).
I know that if I want to spawn multiple objects one object must be the main parrent. In this case it is the same cube. So the cube is parrent, terrain, and the environment is the children of that cube (picture no. 4).
The code of the sleeping object (picture no. 5).
So the problem is - when I have to spawn more than one object on scene, there is a conflict. Either my objects move, or they move away from the camera when I walk towards them, etc …

Link to photos:
https://drive.google.com/drive/folders/10gi74ULyPTKrrNsw55l6one9e11bCTpl?usp=sharing

Have you done anything in this direction ? i have similar problems in my app ,we can sheer experience if you want .