Method
moveAxisTo
(axis CameraAxis, value float32)
Source from the content-addressed store, hash-verified
| 214 | } |
| 215 | |
| 216 | func (cam *CameraSystem) moveAxisTo(axis CameraAxis, value float32) { |
| 217 | switch axis { |
| 218 | case XAxis: |
| 219 | cam.moveToX(value) |
| 220 | case YAxis: |
| 221 | cam.moveToY(value) |
| 222 | case ZAxis: |
| 223 | cam.zoomTo(value) |
| 224 | case Angle: |
| 225 | cam.rotateTo(value) |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | func (cam *CameraSystem) moveX(value float32) { |
| 230 | if cam.x+(value*engo.GetGlobalScale().X) > CameraBounds.Max.X*engo.GetGlobalScale().X { |
Tested by
no test coverage detected