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

Method setTrackObject

Engine/source/T3D/camera.cpp:1495–1513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1493//-----------------------------------------------------------------------------
1494
1495void Camera::setTrackObject(GameBase *obj, const Point3F &offset)
1496{
1497 if(bool(mOrbitObject))
1498 {
1499 clearProcessAfter();
1500 clearNotify(mOrbitObject);
1501 }
1502 mOrbitObject = obj;
1503 if(bool(mOrbitObject))
1504 {
1505 processAfter(mOrbitObject);
1506 deleteNotify(mOrbitObject);
1507 }
1508
1509 mOffset = offset;
1510 mMode = TrackObjectMode;
1511
1512 setMaskBits( UpdateMask );
1513}
1514
1515//-----------------------------------------------------------------------------
1516

Callers 1

camera.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected