Allow creating triggered particles oriented to train/car/etc direction of travel
Posted: Mon Aug 24, 2026 6:33 pm
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).
What is the idiomatic way to create particles with position/velocity relative to the traveling entity, ala the SmokeSource.position or ProjectileTriggerDelivery.direction_deviation ?