reckfellENGINE

GpuParticlesAttractorVectorField3D

A box-shaped attractor with varying directions and strengths defined in it that influences particles from GPUParticles3D nodes.

On this page
class GpuParticlesAttractorVectorField3DReckfellSharpInherits GpuParticlesAttractor3D

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
# GpuParticlesAttractorVectorField3D
C#
public GpuParticlesAttractorVectorField3D();

Properties2

SizeProperty
# Size
C#
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
# Texture
C#
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
# GetSize
C#
public Vector3 GetSize();
Returns Vector3
GetTextureTexture3D
# GetTexture
C#
public Texture3D GetTexture();
Returns Texture3D
SetSizevoid
# SetSize
C#
public void SetSize(Vector3 size);
Parameters
NameTypeDefault
sizeVector3—
SetTexturevoid
# SetTexture
C#
public void SetTexture(Texture3D texture);
Parameters
NameTypeDefault
textureTexture3D—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.