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

Method setPathObjectEndNode

Engine/source/Verve/Torque3D/VMotion.cpp:435–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435void VTorque::setPathObjectEndNode( PathObjectType *pPath, SceneObjectType *pObject, const S32 &pNode )
436{
437 if ( !pPath || !pObject )
438 {
439 // Sanity!
440 return;
441 }
442
443 // Update Object End Node.
444 pPath->setPathObjectEndNode( pObject, pNode );
445
446#if defined( VT_EDITOR ) && defined( VT_SYNC_LOCALCLIENT )
447
448 // Fetch the client Path.
449 VPath *clientPath = dynamic_cast<VPath*>( getClientObject( pPath ) );
450 SceneObjectType *clientObject = dynamic_cast<SceneObjectType*>( getClientObject( pObject ) );
451 if ( clientPath && clientObject )
452 {
453 // Update Object End Node.
454 clientPath->setPathObjectEndNode( clientObject, pNode );
455 }
456
457#endif
458}

Callers

nothing calls this directly

Calls 1

getClientObjectFunction · 0.70

Tested by

no test coverage detected