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

Method setTarget

Engine/source/T3D/pathShape.cpp:250–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250void PathShape::setTarget(F32 pos)
251{
252 mTarget = pos;
253 mTargetSet = true;
254 if (mTarget > mPosition)
255 mState = Forward;
256 else
257 if (mTarget < mPosition)
258 mState = Backward;
259 else {
260 mTargetSet = false;
261 mState = Stop;
262 }
263 setMaskBits(TargetMask | StateMask);
264}
265
266void PathShape::setState(State s)
267{

Callers 1

pathShape.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected