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

Method getTriggerState

Engine/source/ts/tsAnimate.cpp:1033–1043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1031}
1032
1033bool TSShapeInstance::getTriggerState(U32 stateNum, bool clearState)
1034{
1035 AssertFatal(stateNum<=32 && stateNum>0,"TSShapeInstance::getTriggerState: state index out of range");
1036
1037 stateNum--; // stateNum externally 1..32, internally 0..31
1038 U32 bit = 1 << stateNum;
1039 bool ret = ((mTriggerStates & bit)!=0);
1040 if (clearState)
1041 mTriggerStates &= ~bit;
1042 return ret;
1043}
1044
1045void TSShapeInstance::setNodeAnimationState(S32 nodeIndex, U32 animationState, TSCallback * callback)
1046{

Callers 1

updateActionThreadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected