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 btAxisSweep3InternalShort extends btBroadphaseInterface {
\r
17 private long swigCPtr;
\r
19 protected btAxisSweep3InternalShort(final String className, long cPtr, boolean cMemoryOwn) {
\r
20 super(className, gdxBulletJNI.btAxisSweep3InternalShort_SWIGUpcast(cPtr), cMemoryOwn);
\r
24 protected btAxisSweep3InternalShort(long cPtr, boolean cMemoryOwn) {
\r
25 this("btAxisSweep3InternalShort", cPtr, cMemoryOwn);
\r
29 public static long getCPtr(btAxisSweep3InternalShort obj) {
\r
30 return (obj == null) ? 0 : obj.swigCPtr;
\r
34 protected void finalize() throws Throwable {
\r
40 @Override protected synchronized void delete() {
\r
41 if (swigCPtr != 0) {
\r
43 swigCMemOwn = false;
\r
44 gdxBulletJNI.delete_btAxisSweep3InternalShort(swigCPtr);
\r
51 public btAxisSweep3InternalShort(Vector3 worldAabbMin, Vector3 worldAabbMax, int handleMask, int handleSentinel, int maxHandles, btOverlappingPairCache pairCache, boolean disableRaycastAccelerator) {
\r
52 this(gdxBulletJNI.new_btAxisSweep3InternalShort__SWIG_0(worldAabbMin, worldAabbMax, handleMask, handleSentinel, maxHandles, btOverlappingPairCache.getCPtr(pairCache), pairCache, disableRaycastAccelerator), true);
\r
55 public btAxisSweep3InternalShort(Vector3 worldAabbMin, Vector3 worldAabbMax, int handleMask, int handleSentinel, int maxHandles, btOverlappingPairCache pairCache) {
\r
56 this(gdxBulletJNI.new_btAxisSweep3InternalShort__SWIG_1(worldAabbMin, worldAabbMax, handleMask, handleSentinel, maxHandles, btOverlappingPairCache.getCPtr(pairCache), pairCache), true);
\r
59 public btAxisSweep3InternalShort(Vector3 worldAabbMin, Vector3 worldAabbMax, int handleMask, int handleSentinel, int maxHandles) {
\r
60 this(gdxBulletJNI.new_btAxisSweep3InternalShort__SWIG_2(worldAabbMin, worldAabbMax, handleMask, handleSentinel, maxHandles), true);
\r
63 public btAxisSweep3InternalShort(Vector3 worldAabbMin, Vector3 worldAabbMax, int handleMask, int handleSentinel) {
\r
64 this(gdxBulletJNI.new_btAxisSweep3InternalShort__SWIG_3(worldAabbMin, worldAabbMax, handleMask, handleSentinel), true);
\r
67 public int getNumHandles() {
\r
68 return gdxBulletJNI.btAxisSweep3InternalShort_getNumHandles(swigCPtr, this);
\r
71 public int addHandle(Vector3 aabbMin, Vector3 aabbMax, SWIGTYPE_p_void pOwner, short collisionFilterGroup, short collisionFilterMask, btDispatcher dispatcher, SWIGTYPE_p_void multiSapProxy) {
\r
72 return gdxBulletJNI.btAxisSweep3InternalShort_addHandle(swigCPtr, this, aabbMin, aabbMax, SWIGTYPE_p_void.getCPtr(pOwner), collisionFilterGroup, collisionFilterMask, btDispatcher.getCPtr(dispatcher), dispatcher, SWIGTYPE_p_void.getCPtr(multiSapProxy));
\r
75 public void removeHandle(int handle, btDispatcher dispatcher) {
\r
76 gdxBulletJNI.btAxisSweep3InternalShort_removeHandle(swigCPtr, this, handle, btDispatcher.getCPtr(dispatcher), dispatcher);
\r
79 public void updateHandle(int handle, Vector3 aabbMin, Vector3 aabbMax, btDispatcher dispatcher) {
\r
80 gdxBulletJNI.btAxisSweep3InternalShort_updateHandle(swigCPtr, this, handle, aabbMin, aabbMax, btDispatcher.getCPtr(dispatcher), dispatcher);
\r
83 public SWIGTYPE_p_btAxisSweep3InternalT_unsigned_short_t__Handle getHandle(int index) {
\r
84 long cPtr = gdxBulletJNI.btAxisSweep3InternalShort_getHandle(swigCPtr, this, index);
\r
85 return (cPtr == 0) ? null : new SWIGTYPE_p_btAxisSweep3InternalT_unsigned_short_t__Handle(cPtr, false);
\r
88 public void rayTest(Vector3 rayFrom, Vector3 rayTo, btBroadphaseRayCallback rayCallback, Vector3 aabbMin, Vector3 aabbMax) {
\r
89 gdxBulletJNI.btAxisSweep3InternalShort_rayTest__SWIG_0(swigCPtr, this, rayFrom, rayTo, btBroadphaseRayCallback.getCPtr(rayCallback), rayCallback, aabbMin, aabbMax);
\r
92 public void rayTest(Vector3 rayFrom, Vector3 rayTo, btBroadphaseRayCallback rayCallback, Vector3 aabbMin) {
\r
93 gdxBulletJNI.btAxisSweep3InternalShort_rayTest__SWIG_1(swigCPtr, this, rayFrom, rayTo, btBroadphaseRayCallback.getCPtr(rayCallback), rayCallback, aabbMin);
\r
96 public void rayTest(Vector3 rayFrom, Vector3 rayTo, btBroadphaseRayCallback rayCallback) {
\r
97 gdxBulletJNI.btAxisSweep3InternalShort_rayTest__SWIG_2(swigCPtr, this, rayFrom, rayTo, btBroadphaseRayCallback.getCPtr(rayCallback), rayCallback);
\r
100 public void quantize(java.nio.IntBuffer out, Vector3 point, int isMax) {
\r
101 assert out.isDirect() : "Buffer must be allocated direct.";
\r
103 gdxBulletJNI.btAxisSweep3InternalShort_quantize(swigCPtr, this, out, point, isMax);
\r
107 public void unQuantize(btBroadphaseProxy proxy, Vector3 aabbMin, Vector3 aabbMax) {
\r
108 gdxBulletJNI.btAxisSweep3InternalShort_unQuantize(swigCPtr, this, btBroadphaseProxy.getCPtr(proxy), proxy, aabbMin, aabbMax);
\r
111 public boolean testAabbOverlap(btBroadphaseProxy proxy0, btBroadphaseProxy proxy1) {
\r
112 return gdxBulletJNI.btAxisSweep3InternalShort_testAabbOverlap(swigCPtr, this, btBroadphaseProxy.getCPtr(proxy0), proxy0, btBroadphaseProxy.getCPtr(proxy1), proxy1);
\r
115 public btOverlappingPairCache getOverlappingPairCache() {
\r
116 long cPtr = gdxBulletJNI.btAxisSweep3InternalShort_getOverlappingPairCache__SWIG_0(swigCPtr, this);
\r
117 return (cPtr == 0) ? null : new btOverlappingPairCache(cPtr, false);
\r
120 public void setOverlappingPairUserCallback(btOverlappingPairCallback pairCallback) {
\r
121 gdxBulletJNI.btAxisSweep3InternalShort_setOverlappingPairUserCallback(swigCPtr, this, btOverlappingPairCallback.getCPtr(pairCallback), pairCallback);
\r
124 public btOverlappingPairCallback getOverlappingPairUserCallback() {
\r
125 long cPtr = gdxBulletJNI.btAxisSweep3InternalShort_getOverlappingPairUserCallback(swigCPtr, this);
\r
126 return (cPtr == 0) ? null : new btOverlappingPairCallback(cPtr, false);
\r