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

Method handleMaskedPositionNode

Engine/source/ts/tsAnimate.cpp:559–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557}
558
559void TSShapeInstance::handleMaskedPositionNode(TSThread * th, S32 nodeIndex, S32 offset)
560{
561 const Point3F & p1 = mShape->getTranslation(*th->getSequence(),th->keyNum1,offset);
562 const Point3F & p2 = mShape->getTranslation(*th->getSequence(),th->keyNum2,offset);
563 Point3F p;
564 TSTransform::interpolate(p1,p2,th->keyPos,&p);
565
566 if (!mMaskPosXNodes.test(nodeIndex))
567 smNodeCurrentTranslations[nodeIndex].x = p.x;
568
569 if (!mMaskPosYNodes.test(nodeIndex))
570 smNodeCurrentTranslations[nodeIndex].y = p.y;
571
572 if (!mMaskPosZNodes.test(nodeIndex))
573 smNodeCurrentTranslations[nodeIndex].z = p.z;
574}
575
576void TSShapeInstance::handleBlendSequence(TSThread * thread, S32 a, S32 b)
577{

Callers

nothing calls this directly

Calls 2

getSequenceMethod · 0.45
testMethod · 0.45

Tested by

no test coverage detected