GetCamera
From King Arthur's Gold Wiki
Revision as of 19:19, 22 August 2012 by Shadlington (Talk | contribs)
Returns a reference to the CCamera object.
CCamera@ getCamera()
Example from Entities/Common/Scripts/StandardControls.as:
f32 zoomSpeed = 0.25f; f32 maxZoom = 2.0f; switch (zoomLevel) { case 1: getCamera().targetDistance += zoomSpeed; break; case 2: getCamera().targetDistance -= zoomSpeed; break; default: getCamera().targetDistance = 1.0f; break; }