浏览代码

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 */
 /** @hidden */
 export class Collider {
 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 */
     /** Define if a collision was found */
     public collisionFound: boolean;
     public collisionFound: boolean;