Breakroom is now Sinewave Campus. Book a meeting

SParticle

ClientTypes
Dans cette classeposition
  1. Propriétés
  2. position
  3. velocity
  4. animatedVelocity
  5. totalVelocity
  6. remainingLifetime
  7. startLifetime
  8. startColor
  9. randomSeed
  10. axisOfRotation
  11. startSize
  12. startSize3D
  13. rotation
  14. rotation3D
  15. angularVelocity
  16. angularVelocity3D
Membres 15
PropriétépositionThe position of the particle.
PropriétévelocityThe velocity of the particle.
PropriétéanimatedVelocityThe animated velocity of the particle.
PropriététotalVelocityThe total velocity of the particle.
PropriétéremainingLifetimeThe remaining lifetime of the particle.
PropriétéstartLifetimeThe starting lifetime of the particle.
PropriétéstartColorThe initial color of the particle.
PropriétérandomSeedThe random seed of the particle.
PropriétéaxisOfRotationMesh particles rotate around this axis.
PropriétéstartSizeThe initial size of the particle.
PropriétéstartSize3DThe initial 3D size of the particle.
PropriétérotationThe rotation of the particle.
Propriétérotation3DThe 3D rotation of the particle.
PropriétéangularVelocityThe angular velocity of the particle.
PropriétéangularVelocity3DThe 3D angular velocity of the particle.

Propriétés​

position​

SVector position {get; set; }

The position of the particle.

Exemple

Lua
this = Space.Host.ExecutingObject

OnParticleTrigger = function(GameObject)
ParticlesArray = this.ParticleSystem.GetTriggerParticles(0)
FirstParticle = ParticlesArray[1]
position = FirstParticle.position

end

this.SubscribeToEvents()
this.OnParticleTrigger(OnParticleTrigger)
Lua
example 2

velocity​

SVector velocity {get; set; }

The velocity of the particle.

Exemple

Lua
this = Space.Host.ExecutingObject

OnParticleTrigger = function(GameObject)
ParticlesArray = this.ParticleSystem.GetTriggerParticles(0)
FirstParticle = ParticlesArray[1]
velocity= FirstParticle.velocity

end

this.SubscribeToEvents()
this.OnParticleTrigger(OnParticleTrigger)

animatedVelocityLecture seule​

SVector animatedVelocity {get; }

The animated velocity of the particle.

Exemple

Lua
this = Space.Host.ExecutingObject

OnParticleTrigger = function(GameObject)
ParticlesArray = this.ParticleSystem.GetTriggerParticles(0)
FirstParticle = ParticlesArray[1]
animatedVelocity= FirstParticle.animatedVelocity

end

this.SubscribeToEvents()
this.OnParticleTrigger(OnParticleTrigger)
Lua
example 2

totalVelocityLecture seule​

SVector totalVelocity {get; }

The total velocity of the particle.

Exemple

Lua
this = Space.Host.ExecutingObject

OnParticleTrigger = function(GameObject)
ParticlesArray = this.ParticleSystem.GetTriggerParticles(0)
FirstParticle = ParticlesArray[1]
totalVelocity= FirstParticle.totalVelocity

end

this.SubscribeToEvents()
this.OnParticleTrigger(OnParticleTrigger)

remainingLifetime​

float remainingLifetime {get; set; }

The remaining lifetime of the particle.

Exemple

Lua
this = Space.Host.ExecutingObject

OnParticleTrigger = function(GameObject)
ParticlesArray = this.ParticleSystem.GetTriggerParticles(0)
FirstParticle = ParticlesArray[1]
remainingLifetime= FirstParticle.remainingLifetime

end

this.SubscribeToEvents()
this.OnParticleTrigger(OnParticleTrigger)

startLifetime​

float startLifetime {get; set; }

The starting lifetime of the particle.

Exemple

Lua
this = Space.Host.ExecutingObject

OnParticleTrigger = function(GameObject)
ParticlesArray = this.ParticleSystem.GetTriggerParticles(0)
FirstParticle = ParticlesArray[1]
startLifetime= FirstParticle.startLifetime

end

this.SubscribeToEvents()
this.OnParticleTrigger(OnParticleTrigger)

startColor​

SColor startColor {get; set; }

The initial color of the particle. The current color of the particle is calculated procedurally based on this value and the active color modules.

Exemple

Lua
this = Space.Host.ExecutingObject

OnParticleTrigger = function(GameObject)
ParticlesArray = this.ParticleSystem.GetTriggerParticles(0)
FirstParticle = ParticlesArray[1]
startColor= FirstParticle.startColor

end

this.SubscribeToEvents()
this.OnParticleTrigger(OnParticleTrigger)

randomSeed​

uint randomSeed {get; set; }

The random seed of the particle.

Exemple

Lua
this = Space.Host.ExecutingObject

OnParticleTrigger = function(GameObject)
ParticlesArray = this.ParticleSystem.GetTriggerParticles(0)
FirstParticle = ParticlesArray[1]
randomSeed= FirstParticle.randomSeed

end

this.SubscribeToEvents()
this.OnParticleTrigger(OnParticleTrigger)

axisOfRotation​

SVector axisOfRotation {get; set; }

Mesh particles rotate around this axis.

Exemple

Lua
this = Space.Host.ExecutingObject

OnParticleTrigger = function(GameObject)
ParticlesArray = this.ParticleSystem.GetTriggerParticles(0)
FirstParticle = ParticlesArray[1]
axisOfRotation= FirstParticle.axisOfRotation

end

this.SubscribeToEvents()
this.OnParticleTrigger(OnParticleTrigger)

startSize​

float startSize {get; set; }

The initial size of the particle. The current size of the particle is calculated procedurally based on this value and the active size modules.

Exemple

Lua
this = Space.Host.ExecutingObject

OnParticleTrigger = function(GameObject)
ParticlesArray = this.ParticleSystem.GetTriggerParticles(0)
FirstParticle = ParticlesArray[1]
startSize= FirstParticle.startSize

end

this.OnParticleTrigger(OnParticleTrigger)

startSize3D​

SVector startSize3D {get; set; }

The initial 3D size of the particle. The current size of the particle is calculated procedurally based on this value and the active size modules.

Exemple

Lua
this = Space.Host.ExecutingObject

OnParticleTrigger = function(GameObject)
ParticlesArray = this.ParticleSystem.GetTriggerParticles(0)
FirstParticle = ParticlesArray[1]
startSize3D= FirstParticle.startSize3D

end

this.OnParticleTrigger(OnParticleTrigger)

rotation​

float rotation {get; set; }

The rotation of the particle.

Exemple

Lua
this = Space.Host.ExecutingObject

OnParticleTrigger = function(GameObject)
ParticlesArray = this.ParticleSystem.GetTriggerParticles(0)
FirstParticle = ParticlesArray[1]
rotation= FirstParticle.rotation

end

this.OnParticleTrigger(OnParticleTrigger)

rotation3D​

SVector rotation3D {get; set; }

The 3D rotation of the particle.

Exemple

this = Space.Host.ExecutingObject

OnParticleTrigger = function(GameObject) ParticlesArray = this.ParticleSystem.GetTriggerParticles(0) FirstParticle = ParticlesArray[1] rotation3D= FirstParticle.rotation3D

end

this.SubscribeToEvents() this.OnParticleTrigger(OnParticleTrigger)

</div>

</div>

<div data-gb-custom-block data-tag="tabs">

<div data-gb-custom-block data-tag="tab" data-title='Lua'>

```lua
example 2

angularVelocity​

float angularVelocity {get; set; }

The angular velocity of the particle.

Exemple

Lua
this = Space.Host.ExecutingObject

OnParticleTrigger = function(GameObject)
ParticlesArray = this.ParticleSystem.GetTriggerParticles(0)
FirstParticle = ParticlesArray[1]
angularVelocity= FirstParticle.angularVelocity

end

this.SubscribeToEvents()
this.OnParticleTrigger(OnParticleTrigger)

angularVelocity3D​

SVector angularVelocity3D {get; set; }

The 3D angular velocity of the particle.

Exemple

Lua
this = Space.Host.ExecutingObject

OnParticleTrigger = function(GameObject)
ParticlesArray = this.ParticleSystem.GetTriggerParticles(0)
FirstParticle = ParticlesArray[1]
angularVelocity3D= FirstParticle.angularVelocity3D

end

this.SubscribeToEvents()
this.OnParticleTrigger(OnParticleTrigger)