MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / StreakUpdate

Method StreakUpdate

src/SB/Game/zNPCHazard.cpp:1848–1865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1846}
1847
1848void NPCHazard::StreakUpdate(U32 streakID, F32 rad)
1849{
1850 xVec3 pos_left;
1851 pos_left = *(xVec3*)At() * 0.5f * rad;
1852
1853 xVec3 pos_right;
1854 pos_right = *(xVec3*)Up() * rad;
1855 pos_right += pos_left;
1856
1857 // TODO: These names aren't from DWARF - maybe they could be better after impl
1858 xVec3 shifted_pos_left;
1859 shifted_pos_left = *(xVec3*)&this->mdl_hazard->Mat->pos - pos_right;
1860
1861 xVec3 shifted_pos_right;
1862 shifted_pos_right = *(xVec3*)&this->mdl_hazard->Mat->pos + pos_right;
1863
1864 xFXStreakUpdate(streakID, &shifted_pos_left, &shifted_pos_right);
1865}
1866
1867void NPCHazard::Upd_RoboBits(F32 dt)
1868{

Callers

nothing calls this directly

Calls 1

xFXStreakUpdateFunction · 0.50

Tested by

no test coverage detected