Allow creating triggered particles oriented to train/car/etc direction of travel

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
awreece
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Aug 22, 2026 4:22 am
Contact:

Allow creating triggered particles oriented to train/car/etc direction of travel

Post by awreece »

TL;DR
Please add an (opt-in?) way for CreateParticleTriggerEffectItem to rotate its offsets, etc by the source entity's orientation.
What?
I was trying to add a wake to the Cargo Ships mod, which renders ships as train-like entities. I suspect the idiomatic way to render a wake is to use drive_over_tie_trigger to create particles with offset_deviation and speed_from_center that float away from the direction of travel.

Unfortunately, it looks like the offset_deviation bounding box seemed to be fixed to world coordinate plane, not the train's orientation, so this doesn't naively work as intended (if I place the particles in a narrow offset_deviation = {{0.99, -0.01}, {1.01, 0.01}} , they have a velocity perpendicular to the train's direction of travel in when the train is moving in the north-south direction but parallel to the trains direction of travel in the east-west direction, leading to a nice V when the train is going north and a flat line when the train is going east).
native-particle-visual-demo.png
native-particle-visual-demo.png (288.38 KiB) Viewed 146 times
What is the idiomatic way to create particles with position/velocity relative to the traveling entity, ala the SmokeSource.position or ProjectileTriggerDelivery.direction_deviation ?
Attachments
native-particle-probe_0.0.1.zip
(3.36 KiB) Downloaded 23 times
awreece
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Aug 22, 2026 4:22 am
Contact:

Re: Allow creating triggered particles oriented to train/car/etc direction of travel

Post by awreece »

For my future self: CreateTrivialSmokeEffectItem seems like it might be good enough for the V wake, but the question about original API frame of reference might still be interesting to others.
Post Reply

Return to “Modding interface requests”