MCPcopy Index your code
hub / github.com/EngoEngine/engo / CameraSystem

Struct CameraSystem

common/camera.go:54–63  ·  view source on GitHub ↗

CameraSystem is a System that manages the state of the virtual camera. Only one CameraSystem can be in a World at a time. If more than one CameraSystem is added to the World, it will panic.

Source from the content-addressed store, hash-verified

52// one CameraSystem can be in a World at a time. If more than one CameraSystem
53// is added to the World, it will panic.
54type CameraSystem struct {
55 x, y, z float32
56 tracking cameraEntity // The entity that is currently being followed
57 trackRotation bool // Rotate with the entity
58
59 // angle is the angle of the camera, in degrees (not radians!)
60 angle float32
61
62 longTasks map[CameraAxis]*CameraMessage
63}
64
65// New initializes the CameraSystem.
66// New initializes the CameraSystem.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected