示例#1
0
 public void Update(GameTime gameTime)
 {
     if (!Terraria3D.Enabled)
     {
         return;
     }
     DollyController.Update((float)gameTime.ElapsedGameTime.TotalSeconds);
     if (InputTerraria3D.CameraControlsEnabled && !DollyController.DollyInProgress)
     {
         CameraDriver.Drive((float)gameTime.ElapsedGameTime.TotalSeconds);
     }
 }
示例#2
0
 public Scene3D()
 {
     CameraDriver    = new CameraDriver(Camera);
     DollyController = new DollyController(Camera);
 }