OSDN Git Service

Merge remote-tracking branch 'origin/master'
[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
15 public class btGhostObject extends btCollisionObject {
16   private long swigCPtr;
17
18   protected btGhostObject(long cPtr, boolean cMemoryOwn) {
19     super(gdxBulletJNI.btGhostObject_SWIGUpcast(cPtr), cMemoryOwn);
20     swigCPtr = cPtr;
21   }
22
23   public static long getCPtr(btGhostObject obj) {
24     return (obj == null) ? 0 : obj.swigCPtr;
25   }
26
27   protected void finalize() {
28     delete();
29   }
30
31   public synchronized void delete() {
32     if (swigCPtr != 0) {
33       if (swigCMemOwn) {
34         swigCMemOwn = false;
35         gdxBulletJNI.delete_btGhostObject(swigCPtr);
36       }
37       swigCPtr = 0;
38     }
39     super.delete();
40   }
41
42   public btGhostObject() {
43     this(gdxBulletJNI.new_btGhostObject(), true);
44   }
45
46   public void convexSweepTest(btConvexShape castShape, btTransform convexFromWorld, btTransform convexToWorld, SWIGTYPE_p_btCollisionWorld__ConvexResultCallback resultCallback, float allowedCcdPenetration) {
47     gdxBulletJNI.btGhostObject_convexSweepTest__SWIG_0(swigCPtr, this, btConvexShape.getCPtr(castShape), castShape, btTransform.getCPtr(convexFromWorld), convexFromWorld, btTransform.getCPtr(convexToWorld), convexToWorld, SWIGTYPE_p_btCollisionWorld__ConvexResultCallback.getCPtr(resultCallback), allowedCcdPenetration);
48   }
49
50   public void convexSweepTest(btConvexShape castShape, btTransform convexFromWorld, btTransform convexToWorld, SWIGTYPE_p_btCollisionWorld__ConvexResultCallback resultCallback) {
51     gdxBulletJNI.btGhostObject_convexSweepTest__SWIG_1(swigCPtr, this, btConvexShape.getCPtr(castShape), castShape, btTransform.getCPtr(convexFromWorld), convexFromWorld, btTransform.getCPtr(convexToWorld), convexToWorld, SWIGTYPE_p_btCollisionWorld__ConvexResultCallback.getCPtr(resultCallback));
52   }
53
54   public void rayTest(Vector3 rayFromWorld, Vector3 rayToWorld, SWIGTYPE_p_btCollisionWorld__RayResultCallback resultCallback) {
55     gdxBulletJNI.btGhostObject_rayTest(swigCPtr, this, rayFromWorld, rayToWorld, SWIGTYPE_p_btCollisionWorld__RayResultCallback.getCPtr(resultCallback));
56   }
57
58   public void addOverlappingObjectInternal(btBroadphaseProxy otherProxy, btBroadphaseProxy thisProxy) {
59     gdxBulletJNI.btGhostObject_addOverlappingObjectInternal__SWIG_0(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy, btBroadphaseProxy.getCPtr(thisProxy), thisProxy);
60   }
61
62   public void addOverlappingObjectInternal(btBroadphaseProxy otherProxy) {
63     gdxBulletJNI.btGhostObject_addOverlappingObjectInternal__SWIG_1(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy);
64   }
65
66   public void removeOverlappingObjectInternal(btBroadphaseProxy otherProxy, btDispatcher dispatcher, btBroadphaseProxy thisProxy) {
67     gdxBulletJNI.btGhostObject_removeOverlappingObjectInternal__SWIG_0(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy, btDispatcher.getCPtr(dispatcher), dispatcher, btBroadphaseProxy.getCPtr(thisProxy), thisProxy);
68   }
69
70   public void removeOverlappingObjectInternal(btBroadphaseProxy otherProxy, btDispatcher dispatcher) {
71     gdxBulletJNI.btGhostObject_removeOverlappingObjectInternal__SWIG_1(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy, btDispatcher.getCPtr(dispatcher), dispatcher);
72   }
73
74   public int getNumOverlappingObjects() {
75     return gdxBulletJNI.btGhostObject_getNumOverlappingObjects(swigCPtr, this);
76   }
77
78   public btCollisionObject getOverlappingObject(int index) {
79     long cPtr = gdxBulletJNI.btGhostObject_getOverlappingObject__SWIG_0(swigCPtr, this, index);
80     return (cPtr == 0) ? null : new btCollisionObject(cPtr, false);
81   }
82
83   public btCollisionObjectArray getOverlappingPairs() {
84     return new btCollisionObjectArray(gdxBulletJNI.btGhostObject_getOverlappingPairs__SWIG_0(swigCPtr, this), false);
85   }
86
87   public static btGhostObject upcast(btCollisionObject colObj) {
88     long cPtr = gdxBulletJNI.btGhostObject_upcast__SWIG_0(btCollisionObject.getCPtr(colObj), colObj);
89     return (cPtr == 0) ? null : new btGhostObject(cPtr, false);
90   }
91
92 }