1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * Do not make changes to this file unless you know what you are doing--modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
9 package com.badlogic.gdx.physics.bullet;
11 import com.badlogic.gdx.math.Vector3;
12 import com.badlogic.gdx.math.Quaternion;
13 import com.badlogic.gdx.math.Matrix3;
15 public class btGhostObject extends btCollisionObject {
16 private long swigCPtr;
18 protected btGhostObject(long cPtr, boolean cMemoryOwn) {
19 super(gdxBulletJNI.btGhostObject_SWIGUpcast(cPtr), cMemoryOwn);
23 public static long getCPtr(btGhostObject obj) {
24 return (obj == null) ? 0 : obj.swigCPtr;
27 protected void finalize() {
31 public synchronized void delete() {
35 gdxBulletJNI.delete_btGhostObject(swigCPtr);
42 public btGhostObject() {
43 this(gdxBulletJNI.new_btGhostObject(), true);
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);
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));
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));
58 public void addOverlappingObjectInternal(btBroadphaseProxy otherProxy, btBroadphaseProxy thisProxy) {
59 gdxBulletJNI.btGhostObject_addOverlappingObjectInternal__SWIG_0(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy, btBroadphaseProxy.getCPtr(thisProxy), thisProxy);
62 public void addOverlappingObjectInternal(btBroadphaseProxy otherProxy) {
63 gdxBulletJNI.btGhostObject_addOverlappingObjectInternal__SWIG_1(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy);
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);
70 public void removeOverlappingObjectInternal(btBroadphaseProxy otherProxy, btDispatcher dispatcher) {
71 gdxBulletJNI.btGhostObject_removeOverlappingObjectInternal__SWIG_1(swigCPtr, this, btBroadphaseProxy.getCPtr(otherProxy), otherProxy, btDispatcher.getCPtr(dispatcher), dispatcher);
74 public int getNumOverlappingObjects() {
75 return gdxBulletJNI.btGhostObject_getNumOverlappingObjects(swigCPtr, this);
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);
83 public btCollisionObjectArray getOverlappingPairs() {
84 return new btCollisionObjectArray(gdxBulletJNI.btGhostObject_getOverlappingPairs__SWIG_0(swigCPtr, this), false);
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);