Beispiel #1
0
        private void ApplyFriction()
        {
            Vector2f direction = -Vector2fLibrary.Normalize(Velocity);

            Acceleration += direction * (Mass * frictionFactor);
        }
Beispiel #2
0
        private void AddFriction()
        {
            Vector2f direction = Vector2fLibrary.Normalize(Velocity);

            Acceleration += -direction * Mass;
        }