Skip to content

Commit

Permalink
Added Vector2#smoothDamp
Browse files Browse the repository at this point in the history
  • Loading branch information
schteppe committed Jun 22, 2016
1 parent ae8c0f3 commit 1aa882e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/unit/math/Vector2-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,14 @@ describe('Vector2', function () {
});
});

describe('smoothDamp', function () {
it('can smoothDamp', function () {
var target = new Vector2(1,1);
var currentVelocity = new Vector2();
expect(new Vector2().smoothDamp(target, currentVelocity, 0.1, 0.3, 1e7)).not.toEqual([0, 0]);
});
});

describe('deprecated shim added 2015-10-07 (v1.0)', function () {
describe('.data', function () {
it('has working getters', function () {
Expand Down

0 comments on commit 1aa882e

Please sign in to comment.