-----------------------------------------------------------------------
| 359 | } |
| 360 | //----------------------------------------------------------------------- |
| 361 | void Camera::setAutoTracking(bool enabled, SceneNode* const target, |
| 362 | const Vector3& offset) |
| 363 | { |
| 364 | if (enabled) |
| 365 | { |
| 366 | assert (target != 0 && "target cannot be a null pointer if tracking is enabled"); |
| 367 | mAutoTrackTarget = target; |
| 368 | mAutoTrackOffset = offset; |
| 369 | } |
| 370 | else |
| 371 | { |
| 372 | mAutoTrackTarget = 0; |
| 373 | } |
| 374 | } |
| 375 | //----------------------------------------------------------------------- |
| 376 | const Vector3& Camera::getPositionForViewUpdate(void) const |
| 377 | { |
no outgoing calls