Skip to content

Commit 846f5a2

Browse files
committed
Set camera view parameters
1 parent 33c874c commit 846f5a2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/window/Box2D.WindowTests/Program.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Window Simulation Copyright © Ben Ukhanov 2020
88
using Box2DX.Collision;
99
using Box2DX.Common;
1010
using Box2DX.Dynamics;
11+
using OpenTK;
1112

1213
namespace Box2D.WindowTests
1314
{
@@ -27,7 +28,7 @@ private static void Main()
2728
var game = new SimulationWindow("Physics Simulation", 800, 600);
2829
game.UpdateFrame += OnUpdateFrame;
2930
game.Disposed += OnDisposed;
30-
game.SetView(new CameraView());
31+
game.SetView(new CameraView(position: Vector2.Zero, zoom: 0.008f));
3132

3233
var physicsDrawer = new DrawPhysics(game);
3334
physicsDrawer.AppendFlags(DebugDraw.DrawFlags.Aabb);

0 commit comments

Comments
 (0)