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

Method setCamera

Engine/source/Verve/Torque3D/VCamera.cpp:40–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void VTorque::setCamera( SceneObjectType *pObject )
41{
42 // Fetch Game Base.
43 GameBase *object = dynamic_cast<GameBase*>( pObject );
44
45 // Fetch Client Group.
46 SimGroup* clientGroup = Sim::getClientGroup();
47
48 for ( SimGroup::iterator itr = clientGroup->begin(); itr != clientGroup->end(); itr++ )
49 {
50 GameConnection *connection = dynamic_cast<GameConnection*>( *itr );
51 if ( connection )
52 {
53 // Set Camera Object.
54 connection->setCameraObject( object );
55 }
56 }
57}

Callers

nothing calls this directly

Calls 3

setCameraObjectMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected