Class SphereCollisionShape

java.lang.Object
com.jme3.bullet.collision.shapes.CollisionShape
com.jme3.bullet.collision.shapes.SphereCollisionShape
All Implemented Interfaces:
com.jme3.export.Savable

public class SphereCollisionShape extends CollisionShape
Basic sphere collision shape
Author:
normenhansen
  • Field Details

    • radius

      protected float radius
  • Constructor Details

    • SphereCollisionShape

      protected SphereCollisionShape()
    • SphereCollisionShape

      public SphereCollisionShape(float radius)
      creates a SphereCollisionShape with the given radius
      Parameters:
      radius - the desired radius (in unscaled units)
  • Method Details

    • getRadius

      public float getRadius()
    • write

      public void write(com.jme3.export.JmeExporter ex) throws IOException
      Specified by:
      write in interface com.jme3.export.Savable
      Overrides:
      write in class CollisionShape
      Throws:
      IOException
    • read

      public void read(com.jme3.export.JmeImporter im) throws IOException
      Specified by:
      read in interface com.jme3.export.Savable
      Overrides:
      read in class CollisionShape
      Throws:
      IOException
    • createShape

      protected void createShape()