| 260 | } |
| 261 | |
| 262 | void 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 | |
| 287 | void VTorque::setPathObjectSpeed( PathObjectType *pPath, SceneObjectType *pObject, const F32 &pSpeed ) |
| 288 | { |
nothing calls this directly
no test coverage detected