private void Timer_Tick(object sender, EventArgs e) { if (Walk != MoveMent.None) { CamPos.Move((double)Walk * Steps * 0.1); } if (Strafe != MoveMent.None) { CamPos.Strafe((double)Strafe * Steps * 0.1); } newpcam.Position = CamPos.Position; newpcam.LookDirection = new Vector3D(CamPos.Look.X, CamPos.Look.Y, CamPos.Look.Z); PrtCamData(); }
public void Timer_Tick(object sender, EventArgs e, PointManager.Models.Camera camera, PerspectiveCamera perspectiveCamera) { if (Walk != Movement.None) { camera.Move((double)Walk * Steps * 0.1); } if (Strafe != Movement.None) { camera.Strafe((double)Strafe * Steps * 0.1); } perspectiveCamera.Position = camera.Position; perspectiveCamera.LookDirection = new Vector3D(camera.Look.X, camera.Look.Y, camera.Look.Z); PrintCameraData(camera); }