I have this small problem. I have a camera and in front of the camera stands a cube. When I move the camera (left or right) the cube needs to move the same. So I made the cube a child of the Camera. Then when I press X I can’t control the camera anymore but only the cube. After I am done with moving the cube I press Z and the cube needs to be back in front of the cube where it first used to be.
The problem is that the cube doesn’t go back to the same spot again.
Example: When I press left (camera & Cube go left)
When I print out the values I get the Initial Position of the cube [x,y,z] for example [-1.33, -5.57, 2.42]
Then I press X to move the cube and move it to the left. Press Z to place the cube back to it’s original position. Print out the Initial Position (so I can see that nothing has changed all of a sudden: [-1.33, -5.57, 2.42] (So it’s still the same)
Then I print out his actual position: [-3.39, -5.62, 2.42]
For the file see: http://www.sceneupload.com/file/3387/Parent-Problem-rar.html
Can anyone help me get the cube back to his original position in front of the cam again?
The problem doesn’t occur when I unparrent the cube and the camera. Only I need the cube in front of the camera when I move the camera, so the cube is a child of the camera.