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

Method playBlendAnimation

Engine/source/T3D/shapeBase.cpp:5160–5176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5158U32 ShapeBase::unique_anim_tag_counter = 1;
5159
5160U32 ShapeBase::playBlendAnimation(S32 seq_id, F32 pos, F32 rate)
5161{
5162 BlendThread blend_clip;
5163 blend_clip.tag = ((unique_anim_tag_counter++) | BLENDED_CLIP);
5164 blend_clip.thread = 0;
5165
5166 if (isClientObject())
5167 {
5168 blend_clip.thread = mShapeInstance->addThread();
5169 mShapeInstance->setSequence(blend_clip.thread, seq_id, pos);
5170 mShapeInstance->setTimeScale(blend_clip.thread, rate);
5171 }
5172
5173 blend_clips.push_back(blend_clip);
5174
5175 return blend_clip.tag;
5176}
5177
5178void ShapeBase::restoreBlendAnimation(U32 tag)
5179{

Callers

nothing calls this directly

Calls 4

addThreadMethod · 0.45
setSequenceMethod · 0.45
setTimeScaleMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected