Particles as "ship engine flare" need to "rotate" with the ship

I created particles for engine flare behind a space ship engine. When the ship rotates with player input the “stream” of particles don’t rotate with the ship. The particles are a child of the ship. How can I make the particle “stream” behind the ship rotate with the ship so that it stays in place?

Examples:

After rotation of the ship:

Change the particle system to local space

If this is what you mean, it’s set to local already.

In that case, I suspect something is going on in your code related to rotating the ship. Maybe post your rotation code.

What are the shape module settings? You may need a linear directional shape like a cone or edge, and set it to “align to direction”

Align to direction is actually causing the entire particle system to vanish.

// ROTATION controls from input
        Quaternion rot = transform.rotation;
        float z = rot.eulerAngles.z;
        z -= Input.GetAxis("Horizontal") * rotSpeed * Time.deltaTime;
        rot = Quaternion.Euler(0, 0, z);
        transform.rotation = rot;

        // MOVE controls from input
        Vector3 pos = transform.position;
        Vector3 velocity = new Vector3(0, Input.GetAxis("Vertical") * maxSpeed * Time.deltaTime, 0);
        pos += rot * velocity;
        transform.position = pos;

I pulled this from a YouTube tutorial I believe.

Here are the current PS settings:

Ah yes my mistake, “align to direction” will make them face their movement direction instead of the camera, which is not what you want. They disappear because they are 2D and rotated away from the camera 90 degrees.

However the particles should always be moving in the particle system’s forward direction. So as long as you have the particle system rotating with the ship, the particles should move in different directions.

I just made a little test, and for some reason I’m seeing some really odd behavior when rotating the default particle system. Rotating both the Y and the Z axis appear to rotate the Z axis for some reason.

Anyway, why are you using the Mesh shape? Your effect seems to come from a single point on your ship, why not use no shape at all and make the particle system’s local position correct as a child of the ship?

It’s just the one that I managed to get that effect with. :stuck_out_tongue: