Package com.jme3.bullet
Class CollisionConfiguration
java.lang.Object
com.jme3.bullet.NativePhysicsObject
com.jme3.bullet.CollisionConfiguration
- All Implemented Interfaces:
Comparable<NativePhysicsObject>
Tuning parameters for a CollisionSpace, based on Bullet's
btDefaultCollisionConstructionInfo. Immutable.
-
Field Summary
Fields inherited from class com.jme3.bullet.NativePhysicsObject
loggerN
-
Constructor Summary
ConstructorDescriptionInstantiate an instance with the default parameter values.CollisionConfiguration
(int maxManifolds, int penetrationDepthSolver) Instantiate an instance with the specified parameter values. -
Method Summary
Modifier and TypeMethodDescriptionint
Return the size of the persistent-manifold pool.int
Return which penetration-depth solver is used.Methods inherited from class com.jme3.bullet.NativePhysicsObject
compareTo, countTrackers, dumpTrackers, equals, freeUnusedObjects, hasAssignedNativeObject, hashCode, nativeId, reassignNativeId, setNativeId, setNativeIdNotTracked, toString, unassignNativeObject
-
Field Details
-
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 forbtMinkowskiPenetrationDepthSolver
or 1 forbtGjkEpaPenetrationDepthSolver
(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 forbtGjkEpaPenetrationDepthSolver
-