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

Method setTarget

Engine/source/T3D/pathCamera.cpp:308–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308void PathCamera::setTarget(F32 pos)
309{
310 mTarget = pos;
311 mTargetSet = true;
312 if (mTarget > mPosition)
313 mState = Forward;
314 else
315 if (mTarget < mPosition)
316 mState = Backward;
317 else {
318 mTargetSet = false;
319 mState = Stop;
320 }
321 setMaskBits(TargetMask | StateMask);
322}
323
324void PathCamera::setState(State s)
325{

Callers 1

pathCamera.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected