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

Method addPath

Engine/source/ts/tsAnimate.cpp:920–939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

918}
919
920void TSShapeInstance::addPath(TSThread *gt, F32 start, F32 end, MatrixF *mat)
921{
922 // never get here while in transition...
923 AssertFatal(!gt->transitionData.inTransition,"TSShapeInstance::addPath");
924
925 if (!mat)
926 mat = &mGroundTransform;
927
928 MatrixF startInvM;
929 gt->getGround(start,&startInvM);
930 startInvM.inverse();
931
932 MatrixF endM;
933 gt->getGround(end,&endM);
934
935 MatrixF addM;
936 addM.mul(startInvM,endM);
937 endM.mul(*mat,addM);
938 *mat = endM;
939}
940
941bool TSShapeInstance::initGround()
942{

Callers

nothing calls this directly

Calls 3

getGroundMethod · 0.80
inverseMethod · 0.45
mulMethod · 0.45

Tested by

no test coverage detected