Camera.isLocationDirty()
Type | function |
Library | wattageTileEngine.Camera.* |
Return value | boolean |
Keywords | |
See also |
Overview
This function returns true if the camera has been moved since the previous render call. This is used internally by the engine.
Syntax
Camera.isLocationDirty()
Examples
-- tileEngineViewControl is an instance of ViewControl
local camera = tileEngineViewControl.getCamera()
local cameraMoved = camera.isLocationDirty()