1. Home
  2. Docs
  3. PopcornFX v2.8
  4. Scripting reference
  5. Samplers
  6. Vector-Field sampler

Vector-Field sampler

Vector-field / Turbulence sampler

Sampling functions

Return typeDescription
float3SamplerName.sample(float3 position)
Samples the vector-field at coordinate position.
float3SamplerName.sample(float3 position, float time)
Samples the animated vector-field at coordinate position, and at time-cursor time.time should be in the normalized [0, 1] range.
If the vector-field is not animated, returns the same value as SamplerName.sample(position).
Was this article helpful to you? Yes No

How can we help?