Child objects instantiating at different positions

Hi, i created a particle effect with a child particle and a plane, i did a prefab and when i put it on the scene it works flawlessly but when i go to instantiate it only the parent get instantiated at the position i want and the childs get shifted in position and the particle plane for the collision get reset.
I also put a child on the monster in the position i want to use it as a sort of “pivot”
Am i doing something wrong?
This is how it should look like
image
image

One particles is for the trails
One for the blood sprouts
And the latter child is for the plane the trails are colliding with

but when i instantiate it , this is what i get
image

only the first particle get instantiated at the center, the other get instantiated at the top , and the collision plane get reset and is all over the place and not as i setted it

this is my code

    [SerializeField] float health = 100f;
    [SerializeField] GameObject deathVFX;
    [SerializeField] GameObject particlePosition;

  private void TriggerDeathVFX()
    {
        if (!deathVFX) { return; }
        Instantiate(deathVFX, particlePosition.transform.position,particlePosition.transform.rotation,transform);
   
    }
1 Like

I fixed this by making the collider an actual collider and not a plane, my bad

1 Like

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

Privacy & Terms