OSDN Git Service

Merge branch 'master' of github.com:libgdx/libgdx
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / btGhostObject.java
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 2.0.8
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 import com.badlogic.gdx.math.Vector3;
12 import com.badlogic.gdx.math.Quaternion;
13 import com.badlogic.gdx.math.Matrix3;
14 import com.badlogic.gdx.math.Matrix4;
15
16 public class btGhostObject extends btCollisionObject {
17   private long swigCPtr;
18
19   protected btGhostObject(long cPtr, boolean cMemoryOwn) {
20     super(gdxBulletJNI.btGhostObject_SWIGUpcast(cPtr), cMemoryOwn);
21     swigCPtr = cPtr;
22   }
23
24   public static long getCPtr(btGhostObject obj) {
25     return (obj == null) ? 0 : obj.swigCPtr;
26   }
27
28   protected void finalize() {
29     delete();
30   }
31
32   public synchronized void delete() {
33     if (swigCPtr != 0) {
34       if (swigCMemOwn) {
35         swigCMemOwn = false;
36         gdxBulletJNI.delete_btGhostObject(swigCPtr);
37       }
38       swigCPtr = 0;
39     }
40     super.delete();
41   }
42
43   public btGhostObject() {
44     this(gdxBulletJNI.new_btGhostObject(), true);
45   }
46
47   public void convexSweepTest(btConvexShape castShape, Matrix4 convexFromWorld, Matrix4 convexToWorld, ConvexResultCallback resultCallback, float allowedCcdPenetration) {
48     gdxBulletJNI.btGhostObject_convexSweepTest__SWIG_0(swigCPtr, this, btConvexShape.getCPtr(castShape), castShape, convexFromWorld, convexToWorld, ConvexResultCallback.getCPtr(resultCallback), resultCallback, allowedCcdPenetration);
49   }
50
51   public void convexSweepTest(btConvexShape castShape, Matrix4 convexFromWorld, Matrix4 convexToWorld, ConvexResultCallback resultCallback) {
52     gdxBulletJNI.btGhostObject_convexSweepTest__SWIG_1(swigCPtr, this, btConvexShape.getCPtr(castShape), castShape, convexFromWorld, convexToWorld, ConvexResultCallback.getCPtr(resultCallback), resultCallback);
53   }
54
55   public void rayTest(Vector3 rayFromWorld, Vector3 rayToWorld, RayResultCallback resultCallback) {
56     gdxBulletJNI.btGhostObject_rayTest(swigCPtr, this, rayFromWorld, rayToWorld, RayResultCallback.getCPtr(resultCallback), resultCallback);
57   }
58
59   public void addOverlappingObjectInternal(btBroadphaseProxy otherProxy, btBroadphaseProxy thisProxy) {
60     gdxBulletJNI.btGhostObject_addOverlappingObjectInternal__SWIG_0(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy, btBroadphaseProxy.getCPtr(thisProxy), thisProxy);
61   }
62
63   public void addOverlappingObjectInternal(btBroadphaseProxy otherProxy) {
64     gdxBulletJNI.btGhostObject_addOverlappingObjectInternal__SWIG_1(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy);
65   }
66
67   public void removeOverlappingObjectInternal(btBroadphaseProxy otherProxy, btDispatcher dispatcher, btBroadphaseProxy thisProxy) {
68     gdxBulletJNI.btGhostObject_removeOverlappingObjectInternal__SWIG_0(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy, btDispatcher.getCPtr(dispatcher), dispatcher, btBroadphaseProxy.getCPtr(thisProxy), thisProxy);
69   }
70
71   public void removeOverlappingObjectInternal(btBroadphaseProxy otherProxy, btDispatcher dispatcher) {
72     gdxBulletJNI.btGhostObject_removeOverlappingObjectInternal__SWIG_1(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy, btDispatcher.getCPtr(dispatcher), dispatcher);
73   }
74
75   public int getNumOverlappingObjects() {
76     return gdxBulletJNI.btGhostObject_getNumOverlappingObjects(swigCPtr, this);
77   }
78
79   public btCollisionObject getOverlappingObject(int index) {
80     long cPtr = gdxBulletJNI.btGhostObject_getOverlappingObject__SWIG_0(swigCPtr, this, index);
81     return (cPtr == 0) ? null : new btCollisionObject(cPtr, false);
82   }
83
84   public btCollisionObjectArray getOverlappingPairs() {
85     return new btCollisionObjectArray(gdxBulletJNI.btGhostObject_getOverlappingPairs__SWIG_0(swigCPtr, this), false);
86   }
87
88   public static btGhostObject upcast(btCollisionObject colObj) {
89     long cPtr = gdxBulletJNI.btGhostObject_upcast__SWIG_0(btCollisionObject.getCPtr(colObj), colObj);
90     return (cPtr == 0) ? null : new btGhostObject(cPtr, false);
91   }
92
93 }