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

Method setPathObjectOffset

Engine/modules/Verve/Torque3D/VMotion.cpp:262–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void VTorque::setPathObjectOffset( PathObjectType *pPath, SceneObjectType *pObject, const Point3F &pOffset )
263{
264 if ( !pPath || !pObject )
265 {
266 // Sanity!
267 return;
268 }
269
270 // Update Path Object Offset.
271 pPath->setPathObjectOffset( pObject, pOffset );
272
273#if defined( VT_EDITOR ) && defined( VT_SYNC_LOCALCLIENT )
274
275 // Fetch the client Path.
276 VPath *clientPath = dynamic_cast<VPath*>( getClientObject( pPath ) );
277 SceneObjectType *clientObject = dynamic_cast<SceneObjectType*>( getClientObject( pObject ) );
278 if ( clientPath && clientObject )
279 {
280 // Apply the same action.
281 clientPath->setPathObjectOffset( clientObject, pOffset );
282 }
283
284#endif
285}
286
287void VTorque::setPathObjectSpeed( PathObjectType *pPath, SceneObjectType *pObject, const F32 &pSpeed )
288{

Callers

nothing calls this directly

Calls 1

getClientObjectFunction · 0.70

Tested by

no test coverage detected