MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / popFront

Method popFront

Engine/source/T3D/pathCamera.cpp:394–405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394void PathCamera::popFront()
395{
396 if (mNodeCount < 2)
397 return;
398
399 // Remove the first node. Node base and position are unaffected.
400 mNodeCount--;
401 delete mSpline.remove(mSpline.getKnot(0));
402
403 if( mPosition > 0 )
404 mPosition --;
405}
406
407
408//----------------------------------------------------------------------------

Callers 1

pathCamera.cppFile · 0.45

Calls 2

getKnotMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected