1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * Do not make changes to this file unless you know what you are doing--modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
9 package com.badlogic.gdx.physics.bullet;
11 public class btConvex2dConvex2dAlgorithm extends btActivatingCollisionAlgorithm {
12 private long swigCPtr;
14 protected btConvex2dConvex2dAlgorithm (long cPtr, boolean cMemoryOwn) {
15 super(gdxBulletJNI.btConvex2dConvex2dAlgorithm_SWIGUpcast(cPtr), cMemoryOwn);
19 public static long getCPtr (btConvex2dConvex2dAlgorithm obj) {
20 return (obj == null) ? 0 : obj.swigCPtr;
23 protected void finalize () {
27 public synchronized void delete () {
31 gdxBulletJNI.delete_btConvex2dConvex2dAlgorithm(swigCPtr);
38 public btConvex2dConvex2dAlgorithm (btPersistentManifold mf, btCollisionAlgorithmConstructionInfo ci, btCollisionObject body0,
39 btCollisionObject body1, SWIGTYPE_p_btSimplexSolverInterface simplexSolver, btConvexPenetrationDepthSolver pdSolver,
40 int numPerturbationIterations, int minimumPointsPerturbationThreshold) {
41 this(gdxBulletJNI.new_btConvex2dConvex2dAlgorithm(btPersistentManifold.getCPtr(mf), mf,
42 btCollisionAlgorithmConstructionInfo.getCPtr(ci), ci, btCollisionObject.getCPtr(body0), body0,
43 btCollisionObject.getCPtr(body1), body1, SWIGTYPE_p_btSimplexSolverInterface.getCPtr(simplexSolver),
44 btConvexPenetrationDepthSolver.getCPtr(pdSolver), pdSolver, numPerturbationIterations,
45 minimumPointsPerturbationThreshold), true);
48 public void setLowLevelOfDetail (boolean useLowLevel) {
49 gdxBulletJNI.btConvex2dConvex2dAlgorithm_setLowLevelOfDetail(swigCPtr, this, useLowLevel);
52 public btPersistentManifold getManifold () {
53 long cPtr = gdxBulletJNI.btConvex2dConvex2dAlgorithm_getManifold(swigCPtr, this);
54 return (cPtr == 0) ? null : new btPersistentManifold(cPtr, false);