瀏覽代碼

Merge pull request #7828 from neeh/patch-1

Credit algorithm author and link to paper
David Catuhe 5 年之前
父節點
當前提交
35fee404b3
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/Collisions/collider.ts

+ 3 - 0
src/Collisions/collider.ts

@@ -70,6 +70,9 @@ var getLowestRoot: (a: number, b: number, c: number, maxR: number) => { root: nu
 
 /** @hidden */
 export class Collider {
+    // Implementation of the "Improved Collision detection and Response" algorithm proposed by Kasper Fauerby
+    // https://www.peroxide.dk/papers/collision/collision.pdf
+
     /** Define if a collision was found */
     public collisionFound: boolean;