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

Method interpolateMat

Engine/source/T3D/pathCamera.cpp:240–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240void PathCamera::interpolateMat(F32 pos,MatrixF* mat)
241{
242 CameraSpline::Knot knot;
243 mSpline.value(pos - mNodeBase,&knot);
244 knot.mRotation.setMatrix(mat);
245 mat->setPosition(knot.mPosition);
246}
247
248void PathCamera::advancePosition(S32 ms)
249{

Callers

nothing calls this directly

Calls 3

valueMethod · 0.45
setMatrixMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected