Laser Defender, projectile spawning in front of enemy

enemy

Hi, I was doing enemy shooting lecture and I realized that projectile for enemy is spawning a little bit in front of him. As I was trying to find out what can be the reason and put the enemy prefab on the scene I saw that this little grey circle is in front of him(as on the photo). Can someone explain my how to make it back on the enemy so the projectile will shoot straight from the sprite? Thanks.

That little circle is the origin of the game object. Check that the model inside the prefab’s transform shows the position as 0,0,0. This will put it in the middle of the prefab again

any screen shots(of inspector tab) and any code/scripts would be useful to trouble shoot next time. \I hope you got this sorted. crack on my friend ! have a safe holidays.

Thanks!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms