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

Method getRenderMountTransform

Engine/modules/Verve/VPath/VPath.cpp:483–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

getMountLinkMethod · 0.80
getMountNodeMethod · 0.80
getRenderTransformMethod · 0.45

Tested by

no test coverage detected