Download

How to manipulate particle system with controller

I’m working on a magic system and I have a particle system that spawns when I hit the left trigger on the gamepad. I want to be able to have a little circle pop up in the center of the particles (like a menu mouse arrow thing) that is controlled by the right axis and have the particles gather to it if they are a certain closeness to the circle. Any ideas? I’ve got the particle system looking ok for testing, and its spawning with the trigger nicely, but I’m a little stumped on where to go from here.
Screen Shot 2015-07-15 at 3.24.38 PM.png

I’ve got the mouse cursor up on the screen now, but I don’t know how to make it interact with the particles.

I would make an actor with a particle system component, and a collision volume that will respond to the mouse.

When the mouse interacts the way you want with the collision volume, you can change some dynamic parameters in your particle system to react the way you’d like.

That’s how I would tackle it anyway :slight_smile:

Thanks! Thats a little beyond me, but here’s what I have so far. For some reason I can’t get the mouse to collide with the box (I tried “on click” as well to see if that would work). I’m guessing because the cursor exists in 2d space and the particles are in 3d space. Not sure how to make them communicate though.

3f38677e38a2e77d2df2640408053ba2cfde7375.png
cdf26b7509b158806b563c05069fd11e234a14c5.png
9164ab31cf20a08e0c73acd5dbad3f4bdf11d50a.jpeg

My first guess would be the collision presets aren’t configured to block the mouse’s trace channel (I believe the default is the Visibility channel: https://docs.unrealengine.com/latest/INT/Resources/ContentExamples/MouseInterface/MouseControlSetup/index.html)

Wonderful. Thanks man.