This page describes how to make particles track their emitter.
When an emitter moves, you can make the particles it emits track it's motion or be left behind where they are.
Use CreativeStudio to load the sample data prepared in the following folder.
"%NW4C_ROOT%/SampleData/Effect/Intermediate/ManualResource/Rain_Follow_On_Particle/Rain_Follow_On.cptl "
This is an introduction to a demo for programmers that uses this sample.
This demo shows how to change the size of effects and make them move within a program.
" %NW4C_ROOT%/documents/API/nw/gfx/demo/ParticleScaleDemo.html "
On the Contents panel, check that Rain_Particle_Emitter and Cloud_Particle_Emitter are both located under the Rain_Model hierarchy.
(1) Select Cloud_Particle_Emitter from which cloud particles are emitted. Then select Do not follow under Particle model to follow in the General section of the emitter Properties panel.
With this setting, the hierarchical structure changes automatically.
(2) Select Rain_Particle_Emitter from which rain particles are emitted. Then select Do not follow under Particle model to follow in the General section of the emitter Properties panel.
With this setting, the emitter emitting the cload and rain particles is configured so they do not follow the selected model.
When the emitter is made to move, it leaves behind the cloud and rain particles it has emitted.
This can reduce the processing load by the amount required to track the model.
(3) On the Contents panel, select both emitters, cloud_ParticleEmitter and rain_ParticleEmitter, while pressing Ctrl.
(4) Check particle motion while moving the slider for the Translate Y value on the Properties panel.
(5) The cloud and rain particles emitted by the emitter are left in place.
This section describes how to write programs that control the Translate value for the two emitters specified by the designer without overwriting them with values specified by the programmer.
(1) Select Cloud_Particle_Emitter from which cloud particles are emitted. Then select Rain_Particle as the to model to follow in the General section of the emitter Properties panel.
(2) Select Rain_Particle_Emitter from which rain particles are emitted. Then select Rain_Particle model under Particle model to follow in the General section of the emitter Properties panel.
With this setting, the emitters emitting the cloud and rain particles are configured so they do not follow a selected model.
When emitters are made to move, the snow and rain particles they emit can be left in place. You can make particle follow their emitter by moving the model so emitters track it.
(3) Select Rain_Model on the Contents panel.
(4) Check particle motion while moving the slider for the Translate Y value on the Properties panel.
(5) The cloud and rain particles emitted from the emitters will follow their emitters.
For details on the hierarchical structure of particle effects, see Structure-Dependent Differences and Characteristics in the User's Guide.
CONFIDENTIAL