MCPcopy
hub / github.com/EngoEngine/engo / centerCam

Method centerCam

common/camera.go:273–277  ·  view source on GitHub ↗
(x, y, z float32)

Source from the content-addressed store, hash-verified

271}
272
273func (cam *CameraSystem) centerCam(x, y, z float32) {
274 cam.moveToX(x)
275 cam.moveToY(y)
276 cam.zoomTo(z)
277}
278
279// CameraAxis is the axis at which the Camera can/has to move.
280type CameraAxis uint8

Callers 1

UpdateMethod · 0.95

Calls 3

moveToXMethod · 0.95
moveToYMethod · 0.95
zoomToMethod · 0.95

Tested by

no test coverage detected