| 22 | } |
| 23 | |
| 24 | void Streamer::StreamerSegment::Update() |
| 25 | { |
| 26 | StoreInterpolationData(); |
| 27 | |
| 28 | // Update color. |
| 29 | float alpha = (float)Life / (float)LifeMax; |
| 30 | Color.x = EaseInOutSine(ColorEnd.x, ColorStart.x, alpha); |
| 31 | Color.y = EaseInOutSine(ColorEnd.y, ColorStart.y, alpha); |
| 32 | Color.z = EaseInOutSine(ColorEnd.z, ColorStart.z, alpha); |
| 33 | Color.w = EaseInOutSine(ColorEnd.w, ColorStart.w, alpha); |
| 34 | |
| 35 | // TODO: Not working. Make it work. -- Sezz 2025.03.02 |
| 36 | // Update orientation. |
| 37 | Orientation.SetAngle(Orientation.GetAngle() + Rotation); |
| 38 | |
| 39 | // Update vertices. |
| 40 | TransformVertices(Velocity, ExpRate); |
| 41 | |
| 42 | // Update life. |
| 43 | Life--; |
| 44 | } |
| 45 | |
| 46 | void Streamer::StreamerSegment::TransformVertices(float vel, float expRate) |
| 47 | { |
nothing calls this directly
no test coverage detected