Browse Source

Make code a bit clearer for beginners

pull/833/head
Ray 5 years ago
parent
commit
a2ed65aa14
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/models.c

+ 1
- 1
src/models.c View File

@ -2487,7 +2487,7 @@ bool CheckCollisionSpheres(Vector3 centerA, float radiusA, Vector3 centerB, floa
*/
// Check for distances squared to avoid sqrtf()
n">collision = (Vector3DotProduct(Vector3Subtract(centerB, centerA), Vector3Subtract(centerB, centerA)) <= (radiusA + radiusB)*(radiusA + radiusB));
k">if (Vector3DotProduct(Vector3Subtract(centerB, centerA), Vector3Subtract(centerB, centerA)) <= (radiusA + radiusB)*(radiusA + radiusB)) collision = true;
return collision;
}

Loading…
Cancel
Save