Skip to content

SpotlightAcceleration

Radians per frame by which a sweeping spotlight's turn rate rises and falls.

Specification
Applies to
global rules
File
rules.ini
Section
[General]
Value
floating point
When omitted
.005

This value sets how quickly a sweeping spotlight speeds up and slows down. It controls two things: how briskly the beam starts each sweep, and how far it coasts past the edge of its arc before it turns back. A smaller value gives a gentler start and a longer overshoot.

Within its arc, the beam’s turn rate rises by this amount each frame until it reaches SpotlightSpeed. The edge of the arc lies half of SpotlightAngle to either side. Once the beam passes it, the turn rate falls by this amount each frame. The beam reverses when the rate reaches zero.

rules.ini
[General]
SpotlightAcceleration=.001 ; a gentler ramp than the .0025 the shipped rules set

Only a structure whose type sets HasSpotlight=yes casts a beam. A beam set to circle its structure or follow a target does not use this value.