-/* ----------------------------------------------------------------------------
- * This file was automatically generated by SWIG (http://www.swig.org).
- * Version 2.0.8
- *
- * Do not make changes to this file unless you know what you are doing--modify
- * the SWIG interface file instead.
- * ----------------------------------------------------------------------------- */
-
-package com.badlogic.gdx.physics.bullet;
-
-import com.badlogic.gdx.math.Vector3;
-import com.badlogic.gdx.math.Quaternion;
-import com.badlogic.gdx.math.Matrix3;
-
-public class btConvex2dConvex2dAlgorithm extends btActivatingCollisionAlgorithm {
- private long swigCPtr;
-
- protected btConvex2dConvex2dAlgorithm(long cPtr, boolean cMemoryOwn) {
- super(gdxBulletJNI.btConvex2dConvex2dAlgorithm_SWIGUpcast(cPtr), cMemoryOwn);
- swigCPtr = cPtr;
- }
-
- public static long getCPtr(btConvex2dConvex2dAlgorithm obj) {
- return (obj == null) ? 0 : obj.swigCPtr;
- }
-
- protected void finalize() {
- delete();
- }
-
- public synchronized void delete() {
- if (swigCPtr != 0) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- gdxBulletJNI.delete_btConvex2dConvex2dAlgorithm(swigCPtr);
- }
- swigCPtr = 0;
- }
- super.delete();
- }
-
- public btConvex2dConvex2dAlgorithm(btPersistentManifold mf, btCollisionAlgorithmConstructionInfo ci, SWIGTYPE_p_btCollisionObjectWrapper body0Wrap, SWIGTYPE_p_btCollisionObjectWrapper body1Wrap, SWIGTYPE_p_btSimplexSolverInterface simplexSolver, btConvexPenetrationDepthSolver pdSolver, int numPerturbationIterations, int minimumPointsPerturbationThreshold) {
- this(gdxBulletJNI.new_btConvex2dConvex2dAlgorithm(btPersistentManifold.getCPtr(mf), mf, btCollisionAlgorithmConstructionInfo.getCPtr(ci), ci, SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body0Wrap), SWIGTYPE_p_btCollisionObjectWrapper.getCPtr(body1Wrap), SWIGTYPE_p_btSimplexSolverInterface.getCPtr(simplexSolver), btConvexPenetrationDepthSolver.getCPtr(pdSolver), pdSolver, numPerturbationIterations, minimumPointsPerturbationThreshold), true);
- }
-
- public void setLowLevelOfDetail(boolean useLowLevel) {
- gdxBulletJNI.btConvex2dConvex2dAlgorithm_setLowLevelOfDetail(swigCPtr, this, useLowLevel);
- }
-
- public btPersistentManifold getManifold() {
- long cPtr = gdxBulletJNI.btConvex2dConvex2dAlgorithm_getManifold(swigCPtr, this);
- return (cPtr == 0) ? null : new btPersistentManifold(cPtr, false);
- }
-
-}
+/* ----------------------------------------------------------------------------\r
+ * This file was automatically generated by SWIG (http://www.swig.org).\r
+ * Version 2.0.10\r
+ *\r
+ * Do not make changes to this file unless you know what you are doing--modify\r
+ * the SWIG interface file instead.\r
+ * ----------------------------------------------------------------------------- */\r
+\r
+package com.badlogic.gdx.physics.bullet;\r
+\r
+import com.badlogic.gdx.math.Vector3;\r
+import com.badlogic.gdx.math.Quaternion;\r
+import com.badlogic.gdx.math.Matrix3;\r
+import com.badlogic.gdx.math.Matrix4;\r
+\r
+public class btConvex2dConvex2dAlgorithm extends btActivatingCollisionAlgorithm {\r
+ private long swigCPtr;\r
+ \r
+ protected btConvex2dConvex2dAlgorithm(final String className, long cPtr, boolean cMemoryOwn) {\r
+ super(className, gdxBulletJNI.btConvex2dConvex2dAlgorithm_SWIGUpcast(cPtr), cMemoryOwn);\r
+ swigCPtr = cPtr;\r
+ }\r
+ \r
+ protected btConvex2dConvex2dAlgorithm(long cPtr, boolean cMemoryOwn) {\r
+ this("btConvex2dConvex2dAlgorithm", cPtr, cMemoryOwn);\r
+ construct();\r
+ }\r
+ \r
+ @Override\r
+ protected void reset(long cPtr, boolean cMemoryOwn) {\r
+ if (!destroyed)\r
+ destroy();\r
+ super.reset(gdxBulletJNI.btConvex2dConvex2dAlgorithm_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn);\r
+ }\r
+ \r
+ public static long getCPtr(btConvex2dConvex2dAlgorithm obj) {\r
+ return (obj == null) ? 0 : obj.swigCPtr;\r
+ }\r
+\r
+ @Override\r
+ protected void finalize() throws Throwable {\r
+ if (!destroyed)\r
+ destroy();\r
+ super.finalize();\r
+ }\r
+\r
+ @Override protected synchronized void delete() {\r
+ if (swigCPtr != 0) {\r
+ if (swigCMemOwn) {\r
+ swigCMemOwn = false;\r
+ gdxBulletJNI.delete_btConvex2dConvex2dAlgorithm(swigCPtr);\r
+ }\r
+ swigCPtr = 0;\r
+ }\r
+ super.delete();\r
+ }\r
+\r
+ public btConvex2dConvex2dAlgorithm(btPersistentManifold mf, btCollisionAlgorithmConstructionInfo ci, btCollisionObjectWrapper body0Wrap, btCollisionObjectWrapper body1Wrap, SWIGTYPE_p_btSimplexSolverInterface simplexSolver, btConvexPenetrationDepthSolver pdSolver, int numPerturbationIterations, int minimumPointsPerturbationThreshold) {\r
+ this(gdxBulletJNI.new_btConvex2dConvex2dAlgorithm(btPersistentManifold.getCPtr(mf), mf, btCollisionAlgorithmConstructionInfo.getCPtr(ci), ci, btCollisionObjectWrapper.getCPtr(body0Wrap), body0Wrap, btCollisionObjectWrapper.getCPtr(body1Wrap), body1Wrap, SWIGTYPE_p_btSimplexSolverInterface.getCPtr(simplexSolver), btConvexPenetrationDepthSolver.getCPtr(pdSolver), pdSolver, numPerturbationIterations, minimumPointsPerturbationThreshold), true);\r
+ }\r
+\r
+ public void setLowLevelOfDetail(boolean useLowLevel) {\r
+ gdxBulletJNI.btConvex2dConvex2dAlgorithm_setLowLevelOfDetail(swigCPtr, this, useLowLevel);\r
+ }\r
+\r
+ public btPersistentManifold getManifold() {\r
+ long cPtr = gdxBulletJNI.btConvex2dConvex2dAlgorithm_getManifold(swigCPtr, this);\r
+ return (cPtr == 0) ? null : new btPersistentManifold(cPtr, false);\r
+ }\r
+\r
+}\r