OSDN Git Service

Merge branch 'master' of git://github.com/libgdx/libgdx
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / btConvex2dConvex2dAlgorithm.java
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 2.0.5
4  *
5  * Do not make changes to this file unless you know what you are doing--modify
6  * the SWIG interface file instead.
7  * ----------------------------------------------------------------------------- */
8
9 package com.badlogic.gdx.physics.bullet;
10
11 public class btConvex2dConvex2dAlgorithm extends btActivatingCollisionAlgorithm {
12         private long swigCPtr;
13
14         protected btConvex2dConvex2dAlgorithm (long cPtr, boolean cMemoryOwn) {
15                 super(gdxBulletJNI.btConvex2dConvex2dAlgorithm_SWIGUpcast(cPtr), cMemoryOwn);
16                 swigCPtr = cPtr;
17         }
18
19         public static long getCPtr (btConvex2dConvex2dAlgorithm obj) {
20                 return (obj == null) ? 0 : obj.swigCPtr;
21         }
22
23         protected void finalize () {
24                 delete();
25         }
26
27         public synchronized void delete () {
28                 if (swigCPtr != 0) {
29                         if (swigCMemOwn) {
30                                 swigCMemOwn = false;
31                                 gdxBulletJNI.delete_btConvex2dConvex2dAlgorithm(swigCPtr);
32                         }
33                         swigCPtr = 0;
34                 }
35                 super.delete();
36         }
37
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);
46         }
47
48         public void setLowLevelOfDetail (boolean useLowLevel) {
49                 gdxBulletJNI.btConvex2dConvex2dAlgorithm_setLowLevelOfDetail(swigCPtr, this, useLowLevel);
50         }
51
52         public btPersistentManifold getManifold () {
53                 long cPtr = gdxBulletJNI.btConvex2dConvex2dAlgorithm_getManifold(swigCPtr, this);
54                 return (cPtr == 0) ? null : new btPersistentManifold(cPtr, false);
55         }
56
57 }