MCPcopy Create free account
hub / github.com/SolarLune/masterplan / JumpTo

Method JumpTo

camera.go:45–51  ·  view source on GitHub ↗
(pos Vector, zoom float32)

Source from the content-addressed store, hash-verified

43}
44
45func (camera *Camera) JumpTo(pos Vector, zoom float32) {
46 camera.TargetPosition = pos
47 camera.Position = pos
48 camera.TargetZoom = zoom
49 camera.Zoom = zoom
50 camera.Update()
51}
52
53func (camera *Camera) SetZoom(targetZoom float32) {
54

Callers 3

OpenProjectFromFunction · 0.80
SetPageMethod · 0.80
NewSubPageContentsFunction · 0.80

Calls 1

UpdateMethod · 0.95

Tested by

no test coverage detected