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

Method setPathObjectInterp

Engine/source/Verve/Torque3D/VMotion.cpp:237–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237void VTorque::setPathObjectInterp( PathObjectType *pPath, SceneObjectType *pObject, const F32 &pInterp )
238{
239 if ( !pPath || !pObject )
240 {
241 // Sanity!
242 return;
243 }
244
245 // Update Path Object Interp.
246 pPath->setPathObjectInterp( pObject, pInterp );
247
248#if defined( VT_EDITOR ) && defined( VT_SYNC_LOCALCLIENT )
249
250 // Fetch the client Path.
251 VPath *clientPath = dynamic_cast<VPath*>( getClientObject( pPath ) );
252 SceneObjectType *clientObject = dynamic_cast<SceneObjectType*>( getClientObject( pObject ) );
253 if ( clientPath && clientObject )
254 {
255 // Apply the same action.
256 clientPath->setPathObjectInterp( clientObject, pInterp );
257 }
258
259#endif
260}
261
262void VTorque::setPathObjectOffset( PathObjectType *pPath, SceneObjectType *pObject, const Point3F &pOffset )
263{

Callers

nothing calls this directly

Calls 1

getClientObjectFunction · 0.70

Tested by

no test coverage detected