0 like 0 dislike
I want to be able to move an attractor sampler around in Unreal 4 using an attribute. How can I do this?
by feanix (1.2k points)

1 Answer

0 like 0 dislike
Best answer


Actually, you cannot change the position of a shape sample at evolve.

But as a workaround you can :
- Pass the position to the Fx with a float3 attribute AttractorAttributePosition.
- Create a new field AttractorPosition
In an Evolver script (before the attractor Evolver) :  AttractorPosition = Position - AttractorAttributePosition;
- In the Attractor Evolver, enter AttractorPosition in "Field customization / PositionField"

Unfortunately, this will not work for rotations. To do so you will have to compute the inverse transformation (translation/rotation) to replace your particles in the local space of your attractor.

Hopes this helps!


by Romeo (2k points)