MCPcopy Create free account
hub / github.com/OGRECave/ogre / setAutoTracking

Method setAutoTracking

OgreMain/src/OgreCamera.cpp:361–374  ·  view source on GitHub ↗

-----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

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 {

Callers 6

setStyleMethod · 0.45
setupContentMethod · 0.45
processTrackTargetMethod · 0.45
_destroySceneNodeMethod · 0.45
CameraTrack.hFile · 0.45
Shadows.hFile · 0.45

Calls

no outgoing calls

Tested by 1

setupContentMethod · 0.36