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

Method setPathObjectForward

Engine/source/Verve/VPath/VPath.cpp:3245–3259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3243}
3244
3245void VPath::setPathObjectForward( SceneObject *pObject, const bool &pForward )
3246{
3247 VPathObject *pathObject = getPathObject( pObject );
3248 if ( !pathObject )
3249 {
3250 Con::warnf( "VPath::setPathObjectForward() - Object (%d) Not Attached to Path.", pObject->getId() );
3251 return;
3252 }
3253
3254 // Apply.
3255 pathObject->setForward( pForward );
3256
3257 // Network Flags.
3258 setMaskBits( ObjectUpdateMask );
3259}
3260
3261DefineEngineMethod( VPath, getPathObjectNode, S32, (SceneObject *sceneObject), (nullAsType<SceneObject*>()), "( SimObject pObject ) - Gets the last node of the object.\n"
3262 "@param pObject The SimObjectID of the object being observed.\n"

Callers 1

VPath.cppFile · 0.45

Calls 3

getIdMethod · 0.65
warnfFunction · 0.50
setForwardMethod · 0.45

Tested by

no test coverage detected