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

Method getMountTransform

Engine/source/scene/sceneObject.cpp:1343–1352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1341//-----------------------------------------------------------------------------
1342
1343void SceneObject::getMountTransform( S32 index, const MatrixF &xfm, MatrixF *outMat )
1344{
1345 MatrixF mountTransform( xfm );
1346 const Point3F &scale = getScale();
1347 Point3F position = mountTransform.getPosition();
1348 position.convolve( scale );
1349 mountTransform.setPosition( position );
1350
1351 outMat->mul( mObjToWorld, mountTransform );
1352}
1353
1354//-----------------------------------------------------------------------------
1355

Callers

nothing calls this directly

Calls 4

getPositionMethod · 0.45
convolveMethod · 0.45
setPositionMethod · 0.45
mulMethod · 0.45

Tested by

no test coverage detected