-
Notifications
You must be signed in to change notification settings - Fork 338
2D Camera
marcel euchner-martinez edited this page Jun 21, 2022
·
1 revision
In 2D the camera is implemented as h2d.Camera
. This object is by default part of any h2d.Scene
and can be accessed via camera
as well as cameras
which saves the whole array of cameras available to the current scene.
A sample that explains the h2d.Camera
functionality in detail can be found in the github repository:
https://github.com/HeapsIO/heaps/blob/master/samples/Camera2D.hx
(Reminder: This file will already be on your local machine in the HaxeToolkit\haxe\lib\heaps\git\samples
folder)