Explorar el Código

Credit algorithm author and link to paper

neeh hace 5 años
padre
commit
f6b5c2928b
Se han modificado 1 ficheros con 3 adiciones y 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;