Explorar o código

Credit algorithm author and link to paper

neeh %!s(int64=5) %!d(string=hai) anos
pai
achega
f6b5c2928b
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;