- Home /
Question Local Translation PRoblem
I have a spawn point that is a child of a Player. When I instantiate the obj to the location of the spawn point. but if the player moves, the spawn point isn't moving with it? why not?
I made the spawn point a child infront of the player. So that the item will spawn right infront of the player even if the player rotates around. The point should be in front.
bullet.transform.Translate(Vector3.forward * Time.deltaTime * 20, Space.Self);
Answer by RoR · Feb 08, 2011 at 12:08 AM
It had something to do with the pivot point. My cousin who gave me the model the pivot was off centered. So make sure the pivot is set correctly.
Answer by parahunter · Feb 07, 2011 at 11:18 PM
It seems you don't instantiate the new object at the position of the spawn point or the player. post the rest of your spawn code if you wan't some better feedback, in this case I can't see what the problem is based on that single line of code you have provided.
Your answer
Follow this Question
Related Questions
GetComponentInChildren(Renderer).active wont work? 2 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Spawning Error.. 0 Answers
Use lookAt and transform.translate at the same time 1 Answer
Random textures... 1 Answer