Class CollisionConfiguration

java.lang.Object
com.jme3.bullet.NativePhysicsObject
com.jme3.bullet.CollisionConfiguration
All Implemented Interfaces:
Comparable<NativePhysicsObject>

public class CollisionConfiguration extends NativePhysicsObject
Tuning parameters for a CollisionSpace, based on Bullet's btDefaultCollisionConstructionInfo. Immutable.
  • Field Details

    • logger

      public static final Logger logger
      message logger for this class
  • Constructor Details

    • CollisionConfiguration

      public CollisionConfiguration()
      Instantiate an instance with the default parameter values.
    • CollisionConfiguration

      public CollisionConfiguration(int maxManifolds, int penetrationDepthSolver)
      Instantiate an instance with the specified parameter values.
      Parameters:
      maxManifolds - the desired size of the persistent-manifold pool (>0, default=4096)
      penetrationDepthSolver - 0 for btMinkowskiPenetrationDepthSolver or 1 for btGjkEpaPenetrationDepthSolver (default=1)
  • Method Details

    • maxManifolds

      public int maxManifolds()
      Return the size of the persistent-manifold pool. (native field: m_defaultMaxPersistentManifoldPoolSize)
      Returns:
      the count (>0)
    • penetrationDepthSolver

      public int penetrationDepthSolver()
      Return which penetration-depth solver is used. (native field: m_useEpaPenetrationAlgorithm)
      Returns:
      0 for btMinkowskiPenetrationDepthSolver or 1 for btGjkEpaPenetrationDepthSolver