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

Method setPathObjectSpeed

Engine/source/Verve/Torque3D/VMotion.cpp:287–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285}
286
287void VTorque::setPathObjectSpeed( PathObjectType *pPath, SceneObjectType *pObject, const F32 &pSpeed )
288{
289 if ( !pPath || !pObject )
290 {
291 // Sanity!
292 return;
293 }
294
295 // Update Path Speed.
296 pPath->setPathObjectSpeed( pObject, pSpeed );
297
298#if defined( VT_EDITOR ) && defined( VT_SYNC_LOCALCLIENT )
299
300 // Fetch the client Path.
301 VPath *clientPath = dynamic_cast<VPath*>( getClientObject( pPath ) );
302 SceneObjectType *clientObject = dynamic_cast<SceneObjectType*>( getClientObject( pObject ) );
303 if ( clientPath && clientObject )
304 {
305 // Apply the same action.
306 clientPath->setPathObjectSpeed( clientObject, pSpeed );
307 }
308
309#endif
310}
311
312void VTorque::setPathObjectOrientation( PathObjectType *pPath, SceneObjectType *pObject, const String &pOrientation, const String &pOrientationData )
313{

Callers

nothing calls this directly

Calls 1

getClientObjectFunction · 0.70

Tested by

no test coverage detected