Class Sphere


  • public class Sphere
    extends CollisionShape
    Mathematical representation of a sphere. Used to perform intersection and collision tests against spheres.
    • Constructor Detail

      • Sphere

        public Sphere()
        Create a sphere with a center of (0,0,0) and a radius of 1.
      • Sphere

        public Sphere​(float radius)
        Create a sphere with a center of (0,0,0) and a specified radius.
        Parameters:
        radius - the radius of the sphere
      • Sphere

        public Sphere​(float radius,
                      Vector3 center)
        Create a sphere with a specified center and radius.
        Parameters:
        radius - the radius of the sphere
        center - the center of the sphere