MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / Final

Method Final

engine/Poseidon/World/Entities/Vehicles/Tracks.cpp:190–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void TrackStep::Final()
191{
192 for (int level = 0; level < _shape->NLevels(); level++)
193 {
194#if ALPHA_SPLIT
195 Shape* shape = _shape->LevelAlpha(level);
196#else
197 Shape* shape = _shape->LevelOpaque(level);
198#endif
199 shape->SurfaceSplit(GLOB_LAND, Transform(), GLOB_ENGINE->ZShadowEpsilon(), false);
200 shape->AndSpecial(~OnSurface);
201 shape->OrSpecial(TrackSpecFlags | IsOnSurface);
202 shape->FindSections();
203 }
204}
205
206TrackDraw::TrackDraw() : _offsets(false)
207{

Callers 1

UpdateMethod · 0.80

Calls 8

TransformFunction · 0.85
NLevelsMethod · 0.80
LevelOpaqueMethod · 0.80
FindSectionsMethod · 0.80
SurfaceSplitMethod · 0.45
ZShadowEpsilonMethod · 0.45
AndSpecialMethod · 0.45
OrSpecialMethod · 0.45

Tested by

no test coverage detected