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

Function ExplodeFX

TombEngine/Objects/TR5/Object/tr5_missile.cpp:207–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207void ExplodeFX(FX_INFO* fx, int noXZVel, int bits)
208{
209 ShatterItem.yRot = fx->pos.Orientation.y;
210 ShatterItem.meshIndex = fx->frameNumber;
211 ShatterItem.color = Vector4::One;
212 ShatterItem.sphere.Center = fx->pos.Position.ToVector3();
213 ShatterItem.bit = 0;
214 ShatterItem.flags = fx->flag2 & 0x1400;
215
216 if (fx->flag2 & 0x2000)
217 DebrisFlags = 1;
218
219 ShatterObject(&ShatterItem, 0, bits, fx->roomNumber, noXZVel);
220
221 DebrisFlags = 0;
222}

Callers 2

MissileControlFunction · 0.85
ControlBodyPartFunction · 0.85

Calls 2

ShatterObjectFunction · 0.85
ToVector3Method · 0.45

Tested by

no test coverage detected