All Questions


Cassio Grasselli
posted to: Ghost Trail Effect

Wrong direction

This Dirtection on the lecture is wrong:

In our case, we need to use 0 for the x and z values and 1 for the y value, which makes the particles emit downward and, thanks to the Align Y flag, makes the texture look up.

The correct direction is x=1, y=0 and z=0

  • Nathan Lovato replied

    There's no incorrect axis to use here. It's hinted in the lesson with a chart.

    I guess in your project, you needed your particles to look to the right. Perhaps you designed your character or ship to be oriented to the right. In that case, you want to use a value on the X axis.

    In the lesson's case, as explained, the ship we're using as a reference is aligned vertically when not rotated, so we need to use the Y component of the direction vector to align the particles accordingly.

  • Nathan Lovato replied

    I just got to test this again, doing the tutorial from the start, and can confirm the direction in the tutorial is correct if you use the provided sprite: you need to set the direction to Vector3(0, 1, 0) for the particles to align with the ship.

    Here's a screenshot from my editor.

    I'm unsure which step made a difference for you.

    The only case I can see you needing the X axis at 1, as explained in the previous reply, is if you use a different sprite that's aligned to the right by default. But the instructions are specifically for the sprites we provide as course downloads.