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

Method calculateLinearPath

Engine/source/Verve/VPath/VPath.cpp:2078–2082  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2076//-----------------------------------------------------------------------------
2077
2078void VPath::calculateLinearPath( VPathNode *pNode, VPathNode *pNextNode )
2079{
2080 // Calculate Segment Length.
2081 pNode->setLength( ( pNextNode->getWorldPosition() - pNode->getWorldPosition() ).len() );
2082}
2083
2084Point3F VPath::getAdvancedLinearPathPosition( VPathObject *pPathObject, const F32 &pTargetDistance, F32 &pPathInterpDelta )
2085{

Callers

nothing calls this directly

Calls 3

setLengthMethod · 0.45
lenMethod · 0.45
getWorldPositionMethod · 0.45

Tested by

no test coverage detected