Need help with ability spawning logic

I’m trying to replicate Gilgamesh’s “Gates of Babylon” ability from Fate, where portals spawn and shoot swords. I currently have a basic system:

  • Each portal is a part with particle emitters.
  • Server spawns the portals.
  • A local script handles the visual effects.

I want to extend this with more spawning rules since my system makes them spawn in the same axis, all pointing forwards and varying height and horizontal axis

Example video:

What I am trying to achieve is more similar to this
link to reference

The main things I am trying to add:

  1. Making portals spawn in more varied locations (not just in the same z axis)
  2. Point into an area, rather to a single target or just forwards like I have

Any suggestions or reference implementations would be appreciated!

  1. Kind of a kludge but you could add a random vector to the final position of the portals to get that depth you were looking for.

  2. You could cause them to point into an area by causing them to oritent themselves toward the center of that area with a degree of random variation equal to that area’s size.