MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / InitVirtual

Method InitVirtual

engine/Poseidon/World/Viewer.cpp:220–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220void CameraViewer::InitVirtual(CameraType camType, float& heading, float& dive, float& fov) const
221{
222 base::InitVirtual(camType, heading, dive, fov);
223 // Without this, fov defaults to 0 and LimitVirtual clamps it to 0.01 — an
224 // extreme telephoto (~0.6° wide). 0.7 rad ≈ 40° matches the engine default.
225 if (camType == CamInternal && fov <= 0.0f)
226 fov = 0.7f;
227}
228
229extern bool ObjViewer;
230

Callers 2

InitCameraParsMethod · 0.45
SimulateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected