| 285 | } |
| 286 | |
| 287 | void 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 | |
| 312 | void VTorque::setPathObjectOrientation( PathObjectType *pPath, SceneObjectType *pObject, const String &pOrientation, const String &pOrientationData ) |
| 313 | { |
nothing calls this directly
no test coverage detected