MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / Execute

Method Execute

Code/CryEngine/CryLiveCreate/LiveCreate_System.cpp:39–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37bool bIsCameraSyncEnabled = false;
38
39void CLiveCreateCmd_SetCameraPosition::Execute()
40{
41 if (bIsCameraSyncEnabled)
42 {
43 // prepare view parameters
44 IView* pView = GetActiveView();
45 if (NULL != pView)
46 {
47 SViewParams params = *pView->GetCurrentParams();
48 params.position = m_position;
49 params.rotation = m_rotation;
50 params.ResetBlending();
51
52 // update camera entity
53 IEntity* pCameraEntity = GetCameraEntity();
54 if (NULL != pCameraEntity)
55 {
56 pCameraEntity->SetPos(m_position);
57 pCameraEntity->SetRotation(m_rotation);
58 }
59
60 IViewSystem* pViewSystem = GetViewSystem();
61 pViewSystem->SetOverrideCameraRotation(true, m_rotation);
62 pViewSystem->GetActiveView()->SetCurrentParams(params);
63 pViewSystem->GetActiveView()->ResetShaking();
64 }
65 }
66}
67
68void CLiveCreateCmd_SetCameraFOV::Execute()
69{

Callers

nothing calls this directly

Calls 15

MakeGamePathFunction · 0.85
GetCurrentParamsMethod · 0.80
SetCurrentParamsMethod · 0.80
ResetShakingMethod · 0.80
ExecuteStringMethod · 0.80
ToggleLayerVisibilityMethod · 0.80
LayerEnabledMethod · 0.80
ClearSelectionDataMethod · 0.80
SetPosRotScaleMethod · 0.80
GetTimeOfDayMethod · 0.80

Tested by

no test coverage detected