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

Method getRenderMountTransform

Engine/source/Verve/VPath/VPath.cpp:485–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

483}
484
485void VPath::getRenderMountTransform( F32 pDelta, S32 pIndex, const MatrixF &pInTransform, MatrixF *pTransform )
486{
487 // Fetch the Scene Object.
488 VPathObject *pathObject = NULL;
489 for ( SceneObject *itr = getMountList(); itr != NULL; itr = itr->getMountLink() )
490 {
491 if ( itr->getMountNode() == pIndex )
492 {
493 pathObject = getPathObject( itr );
494 break;
495 }
496 }
497
498 if ( !pathObject )
499 {
500 // Reset Transform.
501 *pTransform = pInTransform;
502 // Sanity!
503 return;
504 }
505
506 // Apply Transform.
507 *pTransform = pathObject->getRenderTransform( pDelta );
508}
509
510VectorF VPath::getMountVelocity( const U32 &pIndex )
511{

Callers

nothing calls this directly

Calls 3

getMountLinkMethod · 0.80
getMountNodeMethod · 0.80
getRenderTransformMethod · 0.45

Tested by

no test coverage detected