##### Ninja Library - Collision Function

# njCollisionCheckSC

Checks collision for a sphere and a capsule

### FORMAT

`

  Int njCollisionCheckSC( *sphere, *capsule )
  NJS_SPHERE *sphere
  NJS_CAPSULE *capsule

`

### PARAMETER

  `*sphere` | Sphere to be collision checked
  `*capsule` | Capsule to be collision checked

### RETURN

  1 | Hit |
  0 | Not hit |

### DESCRIPTION

  Checks collision for a sphere and a capsule.

### EXAMPLE

      The following checks collision for a sphere and a capsule.
      NJS_SPHERE *sphere
      NJS_CAPSULE *capsule
      sphere.c.x = -80.f;
      sphere.c.y = 0.f;
      sphere.c.z = 0.f;
      sphere.r = 100.f;
      capsule.c1.x = 80.f;
      capsule.c1.y = 0.f;
      capsule.c1.z = 0.f;
      capsule.c2.x = 180.f;
      capsule.c2.y = 0.f;
      capsule.c2.z = 0.f;
      capsule.r = 100.f;
      njCollisionCheckSC(&sphere, &capsule);
      % Result %
      Return : 1

njCollisionCheckSC

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999