BananaMpq.View.Infrastructure.CameraChassis.Sample C# (CSharp) Method

Sample() public method

public Sample ( ) : void
return void
        public void Sample()
        {
            _velocity *= 1.0f - _acceleration;
            _velocity = new Vector3(
                Clamp(_velocity.X + Accelerator(_w) - Accelerator(_s), -1.0f, 1.0f),
                Clamp(_velocity.Y + Accelerator(_d) - Accelerator(_a), -1.0f, 1.0f),
                Clamp(_velocity.Z + Accelerator(_space) - Accelerator(_x), -1.0f, 1.0f));
        }