private async void ControllerPage_VelocityChanged(object sender, Velocity3D?value) { await Dispatcher.RunAsync(CoreDispatcherPriority.High, () => { if (value != null) { AircraftVelocity = value.Value; } }); }
public GroundState3D(Controller3D controller, Velocity3D velocity) { if (controller == null) { throw new ArgumentNullException("Controller"); } if (velocity == null) { throw new ArgumentNullException("Velocity"); } this.controller = controller; this.velocity = velocity; }
public AirState3D(Controller3D controller, Velocity3D velocity) { if (controller == null) { throw new ArgumentNullException("Controller"); } if (velocity == null) { throw new ArgumentNullException("Velocity"); } this.controller = controller; this.velocity = velocity; jumpCount = 0; jumpGracePeriod = 0.2f; timeEntered = Time.time; }
public DodgeState3D(Controller3D controller, Velocity3D velocity) { if (controller == null) { throw new ArgumentNullException("Controller"); } if (velocity == null) { throw new ArgumentNullException("Velocity"); } this.controller = controller; this.velocity = velocity; direction = new Vector3(PlayerInputs.instance.MovementInput.x, 0.0f, PlayerInputs.instance.MovementInput.y); direction.Normalize(); timer = 0.0f; duration = controller.DodgeDuration; }
public DodgeState3D(Controller3D controller, Velocity3D velocity) { if (controller == null) { throw new ArgumentNullException("Controller"); } if (velocity == null) { throw new ArgumentNullException("Velocity"); } this.controller = controller; this.velocity = velocity; direction = new Vector3(Input.GetAxisRaw("Horizontal"), 0.0f, Input.GetAxisRaw("Vertical")); direction.Normalize(); timer = 0.0f; duration = controller.DodgeDuration; }
public void ShareVelocity(Velocity3D velocity) { this.velocity = velocity; }
public Player() { _velocity = new Velocity3D(); _lookDirection = new LookDirection2D(); _verticalVelocity = 0.0f; }
private void CreateVelocity() { velocity = new Velocity3D(-TerminalVelocity); }
///<exclude/> public bool Equals(Velocity3D other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return other._Vx.Equals(_Vx) && other._Vy.Equals(_Vy) && other._Vz.Equals(_Vz) && other._Vr.Equals(_Vr) && other._Vp.Equals(_Vp) && other._Va.Equals(_Va); }