Download

Create a sphere of particles that move towards the origin?

I’m attempting to create a particle system that has each particle spawn on the surface of a sphere, which I’ve been able to do. However, I want these particles to travel toward the origin of the static mesh that owns it. How would one go about such a task?

You need the center point of your mesh as a vector. Then you can subtract the current position of the points from the center point to get a velocity vector in the direction of the center. If you want more control, you can normalize this vector and multiply it by a float to control the speed.

For a basic sphere on the origin, multiplying the current position by any negative value will give you a velocity vector towards the center.