Join Andy Needham for an in-depth discussion in this video Using the Attractor to make particles attract, part of X-Particles 3 for Cinema 4D Essential Training.
- You'll be familiar with the attractor if you've used the particle modifiers that come with C-4D. Simply put, particles are attracted to a specific point, and so the attractor is a way of directing particles. In this setup, I've already added the attractor modifer to my modifiers list. But, if you wanted to find it, you can find it in the motion modifiers, right here. I'm just going to press play and enable the modifier, and we're just looking at the default settings here, nothing's really changed, apart from I've moved over to this point.
You can see that the particles are flowing and being attracted to this point, and swirling around. And, we can move this, and get a control over them. You could even combine this with another modifier, such as the flock modifier. When moving the attractor around, it's almost like the particles are swarming around the point of attraction. I'll just set up the next example.
In this example, if I press play, we've got the particles all collecting around this point, but if I move it up slightly, and just rewind again, getting this really cool swirling effect, it's kind of like a snail shell, or something. Disable your objects with one click here. And just rewind again.
And, about here. This is the same setup that we had before, with the swirling effect. We're going to change the force to be a negative value. So, if we bring this down slightly, it's almost like we've added a gravity modifier. As we know, unlike the standard modifiers, x-particles modifiers can be controlled by actions. Some modifiers even have a built in question, so they can perform an action based on the result.
We've learned about questions in a previous chapter, and actions too. The attractor modifier has this action, so we can test whether the range of the particles in this case, is less than, you also have more than, a range of 30 cm, and then we can say 'perform this action when that is true.' So, I've chosen to explode the particles. Let's look at the explode particles action. A way of testing whether the result of a question is true is by changing the editor display. I've chosen to make the dots white in color.
Let's enable the action, and just see what happens. So, we have our attractor being vibrated with this tag, and when the question is answered, the particles explode and change to white. So, that's a look at the attractor modifier, a way of directing your particles.
- Working with the Emitter tabs
- Adjusting particles with modifiers
- Creating visible particles
- Using sprites
- Colliding, freezing, and lighting particles
- Caching in X-Particles
- Applying constraints
- Adjusting materials settings
- Sculpting particles
- Saving and loading presets