All Superinterfaces:
Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
Sphere

public interface ConstSphere extends ConstJoltPhysicsObject
Read-only access to an Sphere. (native type: const Sphere)
  • Method Details

    • getCenter

      Vec3 getCenter()
      Copy the location of the sphere's center.
      Returns:
      a new location vector
    • getRadius

      float getRadius()
      Return the radius of the sphere.
      Returns:
      the radius
    • getSupport

      Vec3 getSupport(Vec3Arg direction)
      Calculate the support vector for the specified direction.
      Parameters:
      direction - the direction to use (not null, unaffected)
      Returns:
      a new offset vector