OSDN Git Service

Merge pull request #231 from bitiotic/docfixes.scene2d
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / btConvex2dConvex2dAlgorithm.java
1 /* ----------------------------------------------------------------------------\r
2  * This file was automatically generated by SWIG (http://www.swig.org).\r
3  * Version 2.0.9\r
4  *\r
5  * Do not make changes to this file unless you know what you are doing--modify\r
6  * the SWIG interface file instead.\r
7  * ----------------------------------------------------------------------------- */\r
8 \r
9 package com.badlogic.gdx.physics.bullet;\r
10 \r
11 import com.badlogic.gdx.math.Vector3;\r
12 import com.badlogic.gdx.math.Quaternion;\r
13 import com.badlogic.gdx.math.Matrix3;\r
14 import com.badlogic.gdx.math.Matrix4;\r
15 \r
16 public class btConvex2dConvex2dAlgorithm extends btActivatingCollisionAlgorithm {\r
17   private long swigCPtr;\r
18 \r
19   protected btConvex2dConvex2dAlgorithm(long cPtr, boolean cMemoryOwn) {\r
20     super(gdxBulletJNI.btConvex2dConvex2dAlgorithm_SWIGUpcast(cPtr), cMemoryOwn);\r
21     swigCPtr = cPtr;\r
22   }\r
23 \r
24   public static long getCPtr(btConvex2dConvex2dAlgorithm obj) {\r
25     return (obj == null) ? 0 : obj.swigCPtr;\r
26   }\r
27 \r
28   protected void finalize() {\r
29     delete();\r
30   }\r
31 \r
32   public synchronized void delete() {\r
33     if (swigCPtr != 0) {\r
34       if (swigCMemOwn) {\r
35         swigCMemOwn = false;\r
36         gdxBulletJNI.delete_btConvex2dConvex2dAlgorithm(swigCPtr);\r
37       }\r
38       swigCPtr = 0;\r
39     }\r
40     super.delete();\r
41   }\r
42 \r
43   public btConvex2dConvex2dAlgorithm(btPersistentManifold mf, btCollisionAlgorithmConstructionInfo ci, btCollisionObjectWrapper body0Wrap, btCollisionObjectWrapper body1Wrap, SWIGTYPE_p_btSimplexSolverInterface simplexSolver, btConvexPenetrationDepthSolver pdSolver, int numPerturbationIterations, int minimumPointsPerturbationThreshold) {\r
44     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
45   }\r
46 \r
47   public void setLowLevelOfDetail(boolean useLowLevel) {\r
48     gdxBulletJNI.btConvex2dConvex2dAlgorithm_setLowLevelOfDetail(swigCPtr, this, useLowLevel);\r
49   }\r
50 \r
51   public btPersistentManifold getManifold() {\r
52     long cPtr = gdxBulletJNI.btConvex2dConvex2dAlgorithm_getManifold(swigCPtr, this);\r
53     return (cPtr == 0) ? null : new btPersistentManifold(cPtr, false);\r
54   }\r
55 \r
56 }\r