[ad_1]
I’ve seen questions like this that often find yourself with the OP having confused localposition and world place. This will not be the case.
My enemy is animated. He holds a gun. This gun has a baby, known as “shootpoint” which is the place the bullet comes from.
When firing, I instantiate a empty gameobject at this shootpoint. Using the shootpoint’s rework.place. The enemy is stood on the bottom, so the shootpoint place is fairly low.
Here is the code that I’m utilizing to instantiate this.
GameObject g = new GameObject();
g.rework.place = bulletSpawnPoint.place;
This object (and the weapon’s bullets) seem very excessive up. Far away from the place. Attached is a picture, exhibiting the purpose that the bullets (and the gameobject) are coming from. Selected, is the place they need to be coming from. They are instantiated in world area, utilizing its rework.place.
Here is a picture.
Unity is bugged. I do not know what to do now. How would I even repair this? Could or not it’s the animator? Why would not it line up?
[ad_2]