MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / Update

Method Update

TombEngine/Game/effects/Streamer.cpp:24–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 5

EaseInOutSineFunction · 0.85
ClearInactiveEffectsFunction · 0.85
SetAngleMethod · 0.80
GetAngleMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected