XVelocity
One horizontal axis of the spread of speeds a spark is thrown at.
- Applies to
- ParticleType
- File
rules.ini- Section
[<ObjectType ID>]- Value
- integer
- When omitted
1
[MYSPARK] ; a ParticleType registered in [Particles]BehavesLike=SparkMaxEC=500XVelocity=10 ; sparks are thrown under 10 leptons a frame along this axis, either wayYVelocity=10MinZVelocity=40ZVelocityRange=15A spark system throws each particle at a random speed along this axis, in leptons a frame. The speed is anything below this value, in either direction. A negative value gives the same spread as its positive counterpart.
This setting, YVelocity and ZVelocityRange together set how fast each spark travels and which way it starts. Larger values make the burst faster and more scattered.
The system then adds a vector to each spark’s random speed and scales the sum back to that speed, so the vector changes only the spark’s heading. Most systems add their SpawnDirection, which leaves the heading unchanged at its default of 0,0,0. The firestorm explosions thrown by DefaultFirestormExplosionSystem add one random vector shared by the whole burst instead. SpawnDirection explains how far the vector turns the heading.
Only a particle system with BehavesLike=Spark reads these settings. It reads them from the type its HoldsWhat= names, whatever that type’s own BehavesLike. A type held by any other kind of system ignores them.