SpiralRadius
The radius of the corkscrew a railgun trace winds around its beam, in leptons.
- Applies to
- ParticleSystemType
- File
rules.ini- Section
[<ObjectType ID>]- Value
- floating point
- When omitted
25.0
Each particle of the trace is placed this far from its point on the beam, at the angle SpiralDeltaPerCoord gives it. The value is in leptons, 256 to a cell, so the stock traces’ radii of 6 and 15 keep the coil well inside a cell’s width. Only the Railgun behavior reads it.
The radius is only where the particles start. Each Railgun particle then travels away from the beam at its speed, as MovementPerturbationCoefficient describes, so the coil widens over the trace’s life while that speed stays positive. The speed starts at the particle type’s Velocity, .4 and .3 for the stock traces, plus the offset VelocityPerturbationCoefficient adds, and drifts a little each frame. A Spark particle ignores its speed and falls under gravity, and particles of other behaviors stay where they were created.
[MyRailgunSys] ; a ParticleSystemType registered in [ParticleSystems]BehavesLike=RailgunHoldsWhat=MyRailgunPart ; a ParticleType registered in [Particles]SpiralRadius=15SpiralDeltaPerCoord=.03PositionPerturbationCoefficient=10 ; example value: scatter of up to 5 leptons, a third of the radiusPositionPerturbationCoefficient then moves each particle by up to half its value along each axis, in the same leptons. The coil keeps its shape only while that scatter stays well inside this radius. Both stock traces scatter at least as far as their radius: up to 10 leptons along each axis against a radius of 6, and up to 15 against 15.