Class TestbedCamera
java.lang.Object
de.pirckheimer_gymnasium.jbox2d.testbed.framework.TestbedCamera
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMoves the camera by the given distance in screen coordinates.voidreset()Resets the camera to the initial positionvoidSets the camera center positionvoidSets the camera center position and scalevoidzoomToPoint(Vec2 screenPosition, TestbedCamera.ZoomType zoomType) Zooms the camera to a point on the screen.
-
Constructor Details
-
TestbedCamera
-
-
Method Details
-
reset
public void reset()Resets the camera to the initial position -
setCamera
Sets the camera center position -
setCamera
Sets the camera center position and scale -
zoomToPoint
Zooms the camera to a point on the screen. The zoom amount is given on camera initialization. -
moveWorld
Moves the camera by the given distance in screen coordinates. -
getTransform
-