- Home /
camera and positiong problems
i have a Quad and i attached a scirpt to it which is making random platform spawn with diffrenet time but the problems is everytime i make it a child of the camera it goes to the position of camrea and cant change the posiotn of it ?
That's how the parent-child setup is supposed to work. What did you want it to do ins$$anonymous$$d?
We need a little more information. What do you mean by "random platform spawn with diffrenet time"? If I did understand this correctly, you need to make sure that the platforms you spawn are NOT marked Static. Static objects cannot move when the game is playing.
FairGamesProductions he does not mention Static anywhere??? I've just made my FPS controller static and it moves around with no problems at all, maybe this is bad practice(I would not normally do this at all ever) but it certainly does not stop an object from moving when the game is running...
Yeah, objects marked static can still move. The static value is used to tell the lightmapper to generate a lightmap for that object.
In my experience, if an object is marked static then animations or trying to move it with the mouse in the editor while the game is running won't work...
Answer by Dragonsnare0 · Nov 14, 2014 at 05:55 AM
Make the Camera the child of the Quad.
The camera will then move with the quad.
I hope that's what you meant by this because that's what I got.
when I do that its the same thing I want the camera and the quad to follow the player but in different position for example I want the camera to be at Z = -10 but the quad is at Z = 0 so I can jump on the prefabs I have attached to the quad
Your answer
Follow this Question
Related Questions
Make a simple tree 1 Answer
Child affecting parent rigidbody? 1 Answer
How to smoothen movement of a child object? 1 Answer
Rotating a parent-child pair 2 Answers
How to set child position and rotation fixed respect parent? 0 Answers