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

Method popFront

Engine/source/T3D/pathCamera.cpp:392–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

pathCamera.cppFile · 0.45

Calls 2

getKnotMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected