Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
273
func
(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.
280
type
CameraAxis uint8
Callers
1
Update
Method · 0.95
Calls
3
moveToX
Method · 0.95
moveToY
Method · 0.95
zoomTo
Method · 0.95
Tested by
no test coverage detected