GpuParticlesAttractorVectorField3D
A box-shaped attractor with varying directions and strengths defined in it that influences particles from GPUParticles3D nodes.
A box-shaped attractor with varying directions and strengths defined in it that influences particles from GpuParticles3D nodes.
A box-shaped attractor with varying directions and strengths defined in it that influences particles from GpuParticles3D nodes.
Unlike GpuParticlesAttractorBox3D, GpuParticlesAttractorVectorField3D uses a GpuParticlesAttractorVectorField3D.Texture to affect attraction strength within the box. This can be used to create complex attraction scenarios where particles travel in different directions depending on their location. This can be useful for weather effects such as sandstorms.
Particle attractors work in real-time and can be moved, rotated and scaled during gameplay. Unlike collision shapes, non-uniform scaling of attractors is also supported.
Note: Particle attractors only affect GpuParticles3D, not CpuParticles3D.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
GpuParticlesAttractorVectorField3DConstructor
public GpuParticlesAttractorVectorField3D();Properties2
SizeProperty
public Vector3 Size { get; set; }Full local vector-field region dimensions. Texture coordinates map into this region; size is not a texel count or particle speed.
TextureProperty
public Texture3D Texture { get; set; }Vector-field Texture3D. The current shader linearly samples a signed field around RGB 0.5 and adds force rather than snapping velocity to the nearest texel. Validate axis layout, encoding and transform using a known field.
Methods4
GetSizeVector3
public Vector3 GetSize();Vector3GetTextureTexture3D
public Texture3D GetTexture();Texture3DSetSizevoid
public void SetSize(Vector3 size);| Name | Type | Default |
|---|---|---|
size | Vector3 | — |
SetTexturevoid
public void SetTexture(Texture3D texture);| Name | Type | Default |
|---|---|---|
texture | Texture3D | — |