1 /* ----------------------------------------------------------------------------
\r
2 * This file was automatically generated by SWIG (http://www.swig.org).
\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
9 package com.badlogic.gdx.physics.bullet;
\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
16 public class btGhostObject extends btCollisionObject {
\r
17 private long swigCPtr;
\r
19 protected btGhostObject(long cPtr, boolean cMemoryOwn) {
\r
20 super(gdxBulletJNI.btGhostObject_SWIGUpcast(cPtr), cMemoryOwn);
\r
24 public static long getCPtr(btGhostObject obj) {
\r
25 return (obj == null) ? 0 : obj.swigCPtr;
\r
28 protected void finalize() {
\r
32 public synchronized void delete() {
\r
33 if (swigCPtr != 0) {
\r
35 swigCMemOwn = false;
\r
36 gdxBulletJNI.delete_btGhostObject(swigCPtr);
\r
43 public btGhostObject() {
\r
44 this(gdxBulletJNI.new_btGhostObject(), true);
\r
47 public void convexSweepTest(btConvexShape castShape, Matrix4 convexFromWorld, Matrix4 convexToWorld, ConvexResultCallback resultCallback, float allowedCcdPenetration) {
\r
48 gdxBulletJNI.btGhostObject_convexSweepTest__SWIG_0(swigCPtr, this, btConvexShape.getCPtr(castShape), castShape, convexFromWorld, convexToWorld, ConvexResultCallback.getCPtr(resultCallback), resultCallback, allowedCcdPenetration);
\r
51 public void convexSweepTest(btConvexShape castShape, Matrix4 convexFromWorld, Matrix4 convexToWorld, ConvexResultCallback resultCallback) {
\r
52 gdxBulletJNI.btGhostObject_convexSweepTest__SWIG_1(swigCPtr, this, btConvexShape.getCPtr(castShape), castShape, convexFromWorld, convexToWorld, ConvexResultCallback.getCPtr(resultCallback), resultCallback);
\r
55 public void rayTest(Vector3 rayFromWorld, Vector3 rayToWorld, RayResultCallback resultCallback) {
\r
56 gdxBulletJNI.btGhostObject_rayTest(swigCPtr, this, rayFromWorld, rayToWorld, RayResultCallback.getCPtr(resultCallback), resultCallback);
\r
59 public void addOverlappingObjectInternal(btBroadphaseProxy otherProxy, btBroadphaseProxy thisProxy) {
\r
60 gdxBulletJNI.btGhostObject_addOverlappingObjectInternal__SWIG_0(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy, btBroadphaseProxy.getCPtr(thisProxy), thisProxy);
\r
63 public void addOverlappingObjectInternal(btBroadphaseProxy otherProxy) {
\r
64 gdxBulletJNI.btGhostObject_addOverlappingObjectInternal__SWIG_1(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy);
\r
67 public void removeOverlappingObjectInternal(btBroadphaseProxy otherProxy, btDispatcher dispatcher, btBroadphaseProxy thisProxy) {
\r
68 gdxBulletJNI.btGhostObject_removeOverlappingObjectInternal__SWIG_0(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy, btDispatcher.getCPtr(dispatcher), dispatcher, btBroadphaseProxy.getCPtr(thisProxy), thisProxy);
\r
71 public void removeOverlappingObjectInternal(btBroadphaseProxy otherProxy, btDispatcher dispatcher) {
\r
72 gdxBulletJNI.btGhostObject_removeOverlappingObjectInternal__SWIG_1(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy, btDispatcher.getCPtr(dispatcher), dispatcher);
\r
75 public int getNumOverlappingObjects() {
\r
76 return gdxBulletJNI.btGhostObject_getNumOverlappingObjects(swigCPtr, this);
\r
79 public btCollisionObject getOverlappingObject(int index) {
\r
80 long cPtr = gdxBulletJNI.btGhostObject_getOverlappingObject__SWIG_0(swigCPtr, this, index);
\r
81 return (cPtr == 0) ? null : btCollisionObject.getInstance(cPtr, false);
\r
84 public btCollisionObjectArray getOverlappingPairs() {
\r
85 return new btCollisionObjectArray(gdxBulletJNI.btGhostObject_getOverlappingPairs__SWIG_0(swigCPtr, this), false);
\r
88 public static btGhostObject upcast(btCollisionObject colObj) {
\r
89 long cPtr = gdxBulletJNI.btGhostObject_upcast__SWIG_0(btCollisionObject.getCPtr(colObj), colObj);
\r
90 return (cPtr == 0) ? null : new btGhostObject(cPtr, false);
\r