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

Method pushBack

Engine/source/T3D/pathShape.cpp:297–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297void PathShape::pushBack(CameraSpline::Knot *knot)
298{
299 // Make room at the end
300 if (mNodeCount == NodeWindow) {
301 delete mSpline.remove(mSpline.getKnot(0));
302 mNodeBase++;
303 }
304 else
305 mNodeCount++;
306
307 // Fill in the new node
308 mSpline.push_back(knot);
309 setMaskBits(WindowMask);
310
311 // Make sure the position doesn't fall off
312 if (mPosition < mNodeBase) {
313 mPosition = mNodeBase;
314 setMaskBits(PositionMask);
315 }
316}
317
318void PathShape::pushFront(CameraSpline::Knot *knot)
319{

Callers 3

pathShape.cppFile · 0.45
emitRingsMethod · 0.45
createSplitMethod · 0.45

Calls 3

getKnotMethod · 0.80
removeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected