Documentation
¶
Overview ¶
CPU-based 3D particle node used to create a variety of particle systems and effects. See also [GPUParticles3D], which provides the same functionality with hardware acceleration, but may not run on older devices.
Index ¶
- type Advanced
- type Any
- type DrawOrder
- type EmissionShape
- type Expanded
- type Extension
- func (self *Extension[T]) AsCPUParticles3D() Instance
- func (self *Extension[T]) AsGeometryInstance3D() GeometryInstance3D.Instance
- func (self *Extension[T]) AsNode() Node.Instance
- func (self *Extension[T]) AsNode3D() Node3D.Instance
- func (self *Extension[T]) AsObject() [1]gd.Object
- func (self *Extension[T]) AsVisualInstance3D() VisualInstance3D.Instance
- type ID
- type Instance
- func (self Instance) Amount() int
- func (self Instance) AngleCurve() Curve.Instance
- func (self Instance) AngleMax() Angle.Radians
- func (self Instance) AngleMin() Angle.Radians
- func (self Instance) AngularVelocityCurve() Curve.Instance
- func (self Instance) AngularVelocityMax() Float.X
- func (self Instance) AngularVelocityMin() Float.X
- func (self Instance) AnimOffsetCurve() Curve.Instance
- func (self Instance) AnimOffsetMax() Float.X
- func (self Instance) AnimOffsetMin() Float.X
- func (self Instance) AnimSpeedCurve() Curve.Instance
- func (self Instance) AnimSpeedMax() Float.X
- func (self Instance) AnimSpeedMin() Float.X
- func (self Instance) AsCPUParticles3D() Instance
- func (self Instance) AsGeometryInstance3D() GeometryInstance3D.Instance
- func (self Instance) AsNode() Node.Instance
- func (self Instance) AsNode3D() Node3D.Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsVisualInstance3D() VisualInstance3D.Instance
- func (self Instance) CaptureAabb() AABB.PositionSize
- func (self Instance) Color() Color.RGBA
- func (self Instance) ColorInitialRamp() Gradient.Instance
- func (self Instance) ColorRamp() Gradient.Instance
- func (self Instance) ConvertFromParticles(particles Node.Instance)
- func (self Instance) DampingCurve() Curve.Instance
- func (self Instance) DampingMax() Float.X
- func (self Instance) DampingMin() Float.X
- func (self Instance) Direction() Vector3.XYZ
- func (self Instance) DrawOrder() DrawOrder
- func (self Instance) EmissionBoxExtents() Vector3.XYZ
- func (self Instance) EmissionColors() []Color.RGBA
- func (self Instance) EmissionNormals() []Vector3.XYZ
- func (self Instance) EmissionPoints() []Vector3.XYZ
- func (self Instance) EmissionRingAxis() Vector3.XYZ
- func (self Instance) EmissionRingConeAngle() Angle.Radians
- func (self Instance) EmissionRingHeight() Float.X
- func (self Instance) EmissionRingInnerRadius() Float.X
- func (self Instance) EmissionRingRadius() Float.X
- func (self Instance) EmissionShape() EmissionShape
- func (self Instance) EmissionSphereRadius() Float.X
- func (self Instance) Emitting() bool
- func (self Instance) Explosiveness() Float.X
- func (self Instance) FixedFps() int
- func (self Instance) Flatness() Float.X
- func (self Instance) FractDelta() bool
- func (self Instance) Gravity() Vector3.XYZ
- func (self Instance) HueVariationCurve() Curve.Instance
- func (self Instance) HueVariationMax() Float.X
- func (self Instance) HueVariationMin() Float.X
- func (self Instance) ID() ID
- func (self Instance) InitialVelocityMax() Float.X
- func (self Instance) InitialVelocityMin() Float.X
- func (self Instance) Lifetime() Float.X
- func (self Instance) LifetimeRandomness() Float.X
- func (self Instance) LinearAccelCurve() Curve.Instance
- func (self Instance) LinearAccelMax() Float.X
- func (self Instance) LinearAccelMin() Float.X
- func (self Instance) LocalCoords() bool
- func (self Instance) Mesh() Mesh.Instance
- func (self Instance) OnFinished(cb func(), flags ...Signal.Flags)
- func (self Instance) OneShot() bool
- func (self Instance) OrbitVelocityCurve() Curve.Instance
- func (self Instance) OrbitVelocityMax() Float.X
- func (self Instance) OrbitVelocityMin() Float.X
- func (self Instance) ParticleFlagAlignY() bool
- func (self Instance) ParticleFlagDisableZ() bool
- func (self Instance) ParticleFlagRotateY() bool
- func (self Instance) Preprocess() Float.X
- func (self Instance) RadialAccelCurve() Curve.Instance
- func (self Instance) RadialAccelMax() Float.X
- func (self Instance) RadialAccelMin() Float.X
- func (self Instance) Randomness() Float.X
- func (self Instance) RequestParticlesProcess(process_time Float.X)
- func (self Instance) Restart()
- func (self Instance) ScaleAmountCurve() Curve.Instance
- func (self Instance) ScaleAmountMax() Float.X
- func (self Instance) ScaleAmountMin() Float.X
- func (self Instance) ScaleCurveX() Curve.Instance
- func (self Instance) ScaleCurveY() Curve.Instance
- func (self Instance) ScaleCurveZ() Curve.Instance
- func (self Instance) Seed() int
- func (self Instance) SetAmount(value int)
- func (self Instance) SetAngleCurve(value Curve.Instance)
- func (self Instance) SetAngleMax(value Angle.Radians)
- func (self Instance) SetAngleMin(value Angle.Radians)
- func (self Instance) SetAngularVelocityCurve(value Curve.Instance)
- func (self Instance) SetAngularVelocityMax(value Float.X)
- func (self Instance) SetAngularVelocityMin(value Float.X)
- func (self Instance) SetAnimOffsetCurve(value Curve.Instance)
- func (self Instance) SetAnimOffsetMax(value Float.X)
- func (self Instance) SetAnimOffsetMin(value Float.X)
- func (self Instance) SetAnimSpeedCurve(value Curve.Instance)
- func (self Instance) SetAnimSpeedMax(value Float.X)
- func (self Instance) SetAnimSpeedMin(value Float.X)
- func (self Instance) SetColor(value Color.RGBA)
- func (self Instance) SetColorInitialRamp(value Gradient.Instance)
- func (self Instance) SetColorRamp(value Gradient.Instance)
- func (self Instance) SetDampingCurve(value Curve.Instance)
- func (self Instance) SetDampingMax(value Float.X)
- func (self Instance) SetDampingMin(value Float.X)
- func (self Instance) SetDirection(value Vector3.XYZ)
- func (self Instance) SetDrawOrder(value DrawOrder)
- func (self Instance) SetEmissionBoxExtents(value Vector3.XYZ)
- func (self Instance) SetEmissionColors(value []Color.RGBA)
- func (self Instance) SetEmissionNormals(value []Vector3.XYZ)
- func (self Instance) SetEmissionPoints(value []Vector3.XYZ)
- func (self Instance) SetEmissionRingAxis(value Vector3.XYZ)
- func (self Instance) SetEmissionRingConeAngle(value Angle.Radians)
- func (self Instance) SetEmissionRingHeight(value Float.X)
- func (self Instance) SetEmissionRingInnerRadius(value Float.X)
- func (self Instance) SetEmissionRingRadius(value Float.X)
- func (self Instance) SetEmissionShape(value EmissionShape)
- func (self Instance) SetEmissionSphereRadius(value Float.X)
- func (self Instance) SetEmitting(value bool)
- func (self Instance) SetExplosiveness(value Float.X)
- func (self Instance) SetFixedFps(value int)
- func (self Instance) SetFlatness(value Float.X)
- func (self Instance) SetFractDelta(value bool)
- func (self Instance) SetGravity(value Vector3.XYZ)
- func (self Instance) SetHueVariationCurve(value Curve.Instance)
- func (self Instance) SetHueVariationMax(value Float.X)
- func (self Instance) SetHueVariationMin(value Float.X)
- func (self Instance) SetInitialVelocityMax(value Float.X)
- func (self Instance) SetInitialVelocityMin(value Float.X)
- func (self Instance) SetLifetime(value Float.X)
- func (self Instance) SetLifetimeRandomness(value Float.X)
- func (self Instance) SetLinearAccelCurve(value Curve.Instance)
- func (self Instance) SetLinearAccelMax(value Float.X)
- func (self Instance) SetLinearAccelMin(value Float.X)
- func (self Instance) SetLocalCoords(value bool)
- func (self Instance) SetMesh(value Mesh.Instance)
- func (self *Instance) SetObject(obj [1]gd.Object) bool
- func (self Instance) SetOneShot(value bool)
- func (self Instance) SetOrbitVelocityCurve(value Curve.Instance)
- func (self Instance) SetOrbitVelocityMax(value Float.X)
- func (self Instance) SetOrbitVelocityMin(value Float.X)
- func (self Instance) SetParticleFlagAlignY(value bool)
- func (self Instance) SetParticleFlagDisableZ(value bool)
- func (self Instance) SetParticleFlagRotateY(value bool)
- func (self Instance) SetPreprocess(value Float.X)
- func (self Instance) SetRadialAccelCurve(value Curve.Instance)
- func (self Instance) SetRadialAccelMax(value Float.X)
- func (self Instance) SetRadialAccelMin(value Float.X)
- func (self Instance) SetRandomness(value Float.X)
- func (self Instance) SetScaleAmountCurve(value Curve.Instance)
- func (self Instance) SetScaleAmountMax(value Float.X)
- func (self Instance) SetScaleAmountMin(value Float.X)
- func (self Instance) SetScaleCurveX(value Curve.Instance)
- func (self Instance) SetScaleCurveY(value Curve.Instance)
- func (self Instance) SetScaleCurveZ(value Curve.Instance)
- func (self Instance) SetSeed(value int)
- func (self Instance) SetSpeedScale(value Float.X)
- func (self Instance) SetSplitScale(value bool)
- func (self Instance) SetSpread(value Float.X)
- func (self Instance) SetTangentialAccelCurve(value Curve.Instance)
- func (self Instance) SetTangentialAccelMax(value Float.X)
- func (self Instance) SetTangentialAccelMin(value Float.X)
- func (self Instance) SetUseFixedSeed(value bool)
- func (self Instance) SetVisibilityAabb(value AABB.PositionSize)
- func (self Instance) SpeedScale() Float.X
- func (self Instance) SplitScale() bool
- func (self Instance) Spread() Float.X
- func (self Instance) TangentialAccelCurve() Curve.Instance
- func (self Instance) TangentialAccelMax() Float.X
- func (self Instance) TangentialAccelMin() Float.X
- func (self Instance) UseFixedSeed() bool
- func (self Instance) Virtual(name string) reflect.Value
- func (self Instance) VisibilityAabb() AABB.PositionSize
- type Parameter
- type ParticleFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type DrawOrder ¶
type DrawOrder int //gd:CPUParticles3D.DrawOrder
const ( /*Particles are drawn in the order emitted.*/ DrawOrderIndex DrawOrder = 0 /*Particles are drawn in order of remaining lifetime. In other words, the particle with the highest lifetime is drawn at the front.*/ DrawOrderLifetime DrawOrder = 1 /*Particles are drawn in order of depth.*/ DrawOrderViewDepth DrawOrder = 2 )
type EmissionShape ¶
type EmissionShape int //gd:CPUParticles3D.EmissionShape
const ( /*All particles will be emitted from a single point.*/ EmissionShapePoint EmissionShape = 0 /*Particles will be emitted in the volume of a sphere.*/ EmissionShapeSphere EmissionShape = 1 /*Particles will be emitted on the surface of a sphere.*/ EmissionShapeSphereSurface EmissionShape = 2 /*Particles will be emitted in the volume of a box.*/ EmissionShapeBox EmissionShape = 3 /*Particles will be emitted at a position chosen randomly among [member emission_points]. Particle color will be modulated by [member emission_colors].*/ EmissionShapePoints EmissionShape = 4 /*Particles will be emitted at a position chosen randomly among [member emission_points]. Particle velocity and rotation will be set based on [member emission_normals]. Particle color will be modulated by [member emission_colors].*/ EmissionShapeDirectedPoints EmissionShape = 5 /*Particles will be emitted in a ring or cylinder.*/ EmissionShapeRing EmissionShape = 6 /*Represents the size of the [enum EmissionShape] enum.*/ EmissionShapeMax EmissionShape = 7 )
type Expanded ¶
type Expanded [1]gdclass.CPUParticles3D
type Extension ¶
Extension can be embedded in a new struct to create an extension of this class. T should be the type that is embedding this Extension
func (*Extension[T]) AsCPUParticles3D ¶
func (*Extension[T]) AsGeometryInstance3D ¶
func (self *Extension[T]) AsGeometryInstance3D() GeometryInstance3D.Instance
func (*Extension[T]) AsVisualInstance3D ¶
func (self *Extension[T]) AsVisualInstance3D() VisualInstance3D.Instance
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
type Instance [1]gdclass.CPUParticles3D
Instance of the class with convieniently typed arguments and results.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AngleCurve ¶
func (Instance) AngularVelocityCurve ¶
func (Instance) AngularVelocityMax ¶
func (Instance) AngularVelocityMin ¶
func (Instance) AnimOffsetCurve ¶
func (Instance) AnimOffsetMax ¶
func (Instance) AnimOffsetMin ¶
func (Instance) AnimSpeedCurve ¶
func (Instance) AnimSpeedMax ¶
func (Instance) AnimSpeedMin ¶
func (Instance) AsCPUParticles3D ¶
func (Instance) AsGeometryInstance3D ¶
func (self Instance) AsGeometryInstance3D() GeometryInstance3D.Instance
func (Instance) AsVisualInstance3D ¶
func (self Instance) AsVisualInstance3D() VisualInstance3D.Instance
func (Instance) CaptureAabb ¶
func (self Instance) CaptureAabb() AABB.PositionSize
Returns the axis-aligned bounding box that contains all the particles that are active in the current frame.
func (Instance) ColorInitialRamp ¶
func (Instance) ConvertFromParticles ¶
Sets this node's properties to match a given [GPUParticles3D] node with an assigned [ParticleProcessMaterial].
func (Instance) DampingCurve ¶
func (Instance) DampingMax ¶
func (Instance) DampingMin ¶
func (Instance) EmissionBoxExtents ¶
func (Instance) EmissionColors ¶
func (Instance) EmissionNormals ¶
func (Instance) EmissionPoints ¶
func (Instance) EmissionRingAxis ¶
func (Instance) EmissionRingConeAngle ¶
func (Instance) EmissionRingHeight ¶
func (Instance) EmissionRingInnerRadius ¶
func (Instance) EmissionRingRadius ¶
func (Instance) EmissionShape ¶
func (self Instance) EmissionShape() EmissionShape
func (Instance) EmissionSphereRadius ¶
func (Instance) Explosiveness ¶
func (Instance) FractDelta ¶
func (Instance) HueVariationCurve ¶
func (Instance) HueVariationMax ¶
func (Instance) HueVariationMin ¶
func (Instance) InitialVelocityMax ¶
func (Instance) InitialVelocityMin ¶
func (Instance) LifetimeRandomness ¶
func (Instance) LinearAccelCurve ¶
func (Instance) LinearAccelMax ¶
func (Instance) LinearAccelMin ¶
func (Instance) LocalCoords ¶
func (Instance) OnFinished ¶
func (Instance) OrbitVelocityCurve ¶
func (Instance) OrbitVelocityMax ¶
func (Instance) OrbitVelocityMin ¶
func (Instance) ParticleFlagAlignY ¶
func (Instance) ParticleFlagDisableZ ¶
func (Instance) ParticleFlagRotateY ¶
func (Instance) Preprocess ¶
func (Instance) RadialAccelCurve ¶
func (Instance) RadialAccelMax ¶
func (Instance) RadialAccelMin ¶
func (Instance) Randomness ¶
func (Instance) RequestParticlesProcess ¶
Requests the particles to process for extra process time during a single frame. Useful for particle playback, if used in combination with [member use_fixed_seed] or by calling Instance.Restart with parameter keep_seed set to true.
func (Instance) Restart ¶
func (self Instance) Restart()
Restarts the particle emitter. If 'keep_seed' is true, the current random seed will be preserved. Useful for seeking and playback.
func (Instance) ScaleAmountCurve ¶
func (Instance) ScaleAmountMax ¶
func (Instance) ScaleAmountMin ¶
func (Instance) ScaleCurveX ¶
func (Instance) ScaleCurveY ¶
func (Instance) ScaleCurveZ ¶
func (Instance) SetAngleCurve ¶
func (Instance) SetAngleMax ¶
func (Instance) SetAngleMin ¶
func (Instance) SetAngularVelocityCurve ¶
func (Instance) SetAngularVelocityMax ¶
func (Instance) SetAngularVelocityMin ¶
func (Instance) SetAnimOffsetCurve ¶
func (Instance) SetAnimOffsetMax ¶
func (Instance) SetAnimOffsetMin ¶
func (Instance) SetAnimSpeedCurve ¶
func (Instance) SetAnimSpeedMax ¶
func (Instance) SetAnimSpeedMin ¶
func (Instance) SetColorInitialRamp ¶
func (Instance) SetColorRamp ¶
func (Instance) SetDampingCurve ¶
func (Instance) SetDampingMax ¶
func (Instance) SetDampingMin ¶
func (Instance) SetDirection ¶
func (Instance) SetDrawOrder ¶
func (Instance) SetEmissionBoxExtents ¶
func (Instance) SetEmissionColors ¶
func (Instance) SetEmissionNormals ¶
func (Instance) SetEmissionPoints ¶
func (Instance) SetEmissionRingAxis ¶
func (Instance) SetEmissionRingConeAngle ¶
func (Instance) SetEmissionRingHeight ¶
func (Instance) SetEmissionRingInnerRadius ¶
func (Instance) SetEmissionRingRadius ¶
func (Instance) SetEmissionShape ¶
func (self Instance) SetEmissionShape(value EmissionShape)
func (Instance) SetEmissionSphereRadius ¶
func (Instance) SetEmitting ¶
func (Instance) SetExplosiveness ¶
func (Instance) SetFixedFps ¶
func (Instance) SetFlatness ¶
func (Instance) SetFractDelta ¶
func (Instance) SetGravity ¶
func (Instance) SetHueVariationCurve ¶
func (Instance) SetHueVariationMax ¶
func (Instance) SetHueVariationMin ¶
func (Instance) SetInitialVelocityMax ¶
func (Instance) SetInitialVelocityMin ¶
func (Instance) SetLifetime ¶
func (Instance) SetLifetimeRandomness ¶
func (Instance) SetLinearAccelCurve ¶
func (Instance) SetLinearAccelMax ¶
func (Instance) SetLinearAccelMin ¶
func (Instance) SetLocalCoords ¶
func (Instance) SetOneShot ¶
func (Instance) SetOrbitVelocityCurve ¶
func (Instance) SetOrbitVelocityMax ¶
func (Instance) SetOrbitVelocityMin ¶
func (Instance) SetParticleFlagAlignY ¶
func (Instance) SetParticleFlagDisableZ ¶
func (Instance) SetParticleFlagRotateY ¶
func (Instance) SetPreprocess ¶
func (Instance) SetRadialAccelCurve ¶
func (Instance) SetRadialAccelMax ¶
func (Instance) SetRadialAccelMin ¶
func (Instance) SetRandomness ¶
func (Instance) SetScaleAmountCurve ¶
func (Instance) SetScaleAmountMax ¶
func (Instance) SetScaleAmountMin ¶
func (Instance) SetScaleCurveX ¶
func (Instance) SetScaleCurveY ¶
func (Instance) SetScaleCurveZ ¶
func (Instance) SetSpeedScale ¶
func (Instance) SetSplitScale ¶
func (Instance) SetTangentialAccelCurve ¶
func (Instance) SetTangentialAccelMax ¶
func (Instance) SetTangentialAccelMin ¶
func (Instance) SetUseFixedSeed ¶
func (Instance) SetVisibilityAabb ¶
func (self Instance) SetVisibilityAabb(value AABB.PositionSize)
func (Instance) SpeedScale ¶
func (Instance) SplitScale ¶
func (Instance) TangentialAccelCurve ¶
func (Instance) TangentialAccelMax ¶
func (Instance) TangentialAccelMin ¶
func (Instance) UseFixedSeed ¶
func (Instance) VisibilityAabb ¶
func (self Instance) VisibilityAabb() AABB.PositionSize
type Parameter ¶
type Parameter int //gd:CPUParticles3D.Parameter
const ( /*Use with [method set_param_min], [method set_param_max], and [method set_param_curve] to set initial velocity properties.*/ ParamInitialLinearVelocity Parameter = 0 /*Use with [method set_param_min], [method set_param_max], and [method set_param_curve] to set angular velocity properties.*/ ParamAngularVelocity Parameter = 1 /*Use with [method set_param_min], [method set_param_max], and [method set_param_curve] to set orbital velocity properties.*/ ParamOrbitVelocity Parameter = 2 /*Use with [method set_param_min], [method set_param_max], and [method set_param_curve] to set linear acceleration properties.*/ ParamLinearAccel Parameter = 3 /*Use with [method set_param_min], [method set_param_max], and [method set_param_curve] to set radial acceleration properties.*/ ParamRadialAccel Parameter = 4 /*Use with [method set_param_min], [method set_param_max], and [method set_param_curve] to set tangential acceleration properties.*/ ParamTangentialAccel Parameter = 5 /*Use with [method set_param_min], [method set_param_max], and [method set_param_curve] to set damping properties.*/ ParamDamping Parameter = 6 /*Use with [method set_param_min], [method set_param_max], and [method set_param_curve] to set angle properties.*/ ParamAngle Parameter = 7 /*Use with [method set_param_min], [method set_param_max], and [method set_param_curve] to set scale properties.*/ ParamScale Parameter = 8 /*Use with [method set_param_min], [method set_param_max], and [method set_param_curve] to set hue variation properties.*/ ParamHueVariation Parameter = 9 /*Use with [method set_param_min], [method set_param_max], and [method set_param_curve] to set animation speed properties.*/ ParamAnimSpeed Parameter = 10 /*Use with [method set_param_min], [method set_param_max], and [method set_param_curve] to set animation offset properties.*/ ParamAnimOffset Parameter = 11 /*Represents the size of the [enum Parameter] enum.*/ ParamMax Parameter = 12 )
type ParticleFlags ¶
type ParticleFlags int //gd:CPUParticles3D.ParticleFlags
const ( /*Use with [method set_particle_flag] to set [member particle_flag_align_y].*/ ParticleFlagAlignYToVelocity ParticleFlags = 0 /*Use with [method set_particle_flag] to set [member particle_flag_rotate_y].*/ ParticleFlagRotateY ParticleFlags = 1 /*Use with [method set_particle_flag] to set [member particle_flag_disable_z].*/ ParticleFlagDisableZ ParticleFlags = 2 /*Represents the size of the [enum ParticleFlags] enum.*/ ParticleFlagMax ParticleFlags = 3 )