##### Ninja Library - Collision Function

# njCollisionCheckSS

Checks collision for two spheres

### FORMAT

`

  Int njCollisionCheckSS( *sphere1, *sphere2 )
  NJS_SPHERE *sphere1
  NJS_SPHERE *sphere2

`

### PARAMETER

  `*sphere1` | Sphere object #1 to be collision checked
  `*sphere2` | Sphere object #2 to be collision checked

### RETURN

  1 | Hit |
  0 | Not hit |

### DESCRIPTION

  Checks collision for two spheres.

### EXAMPLE

      The following checks collision for two spheres, sphere1 and sphere2.
      NJS_SPHERE sphere1,sphere2;
      sphere1.c.x = -80.f;
      sphere1.c.y = 0.f;
      sphere1.c.z = 0.f;
      sphere1.r = 100.f;
      sphere2.c.x = 80.f;
      sphere2.c.y = 0.f;
      sphere2.c.z = 0.f;
      sphere2.r = 100.f;
      njCollisionCheckSS(&sphere1, &sphere2);
      % Result %
      Return : 1

njCollisionCheckSS

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999