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 ConvexResultCallback extends BulletBase {
\r
17 private long swigCPtr;
\r
19 protected ConvexResultCallback(final String className, long cPtr, boolean cMemoryOwn) {
\r
20 super(className, cPtr, cMemoryOwn);
\r
24 protected ConvexResultCallback(long cPtr, boolean cMemoryOwn) {
\r
25 this("ConvexResultCallback", cPtr, cMemoryOwn);
\r
29 public static long getCPtr(ConvexResultCallback 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_ConvexResultCallback(swigCPtr);
\r
51 protected void swigDirectorDisconnect() {
\r
52 swigCMemOwn = false;
\r
56 public void swigReleaseOwnership() {
\r
57 swigCMemOwn = false;
\r
58 gdxBulletJNI.ConvexResultCallback_change_ownership(this, swigCPtr, false);
\r
61 public void swigTakeOwnership() {
\r
63 gdxBulletJNI.ConvexResultCallback_change_ownership(this, swigCPtr, true);
\r
66 public void setClosestHitFraction(float value) {
\r
67 gdxBulletJNI.ConvexResultCallback_closestHitFraction_set(swigCPtr, this, value);
\r
70 public float getClosestHitFraction() {
\r
71 return gdxBulletJNI.ConvexResultCallback_closestHitFraction_get(swigCPtr, this);
\r
74 public void setCollisionFilterGroup(short value) {
\r
75 gdxBulletJNI.ConvexResultCallback_collisionFilterGroup_set(swigCPtr, this, value);
\r
78 public short getCollisionFilterGroup() {
\r
79 return gdxBulletJNI.ConvexResultCallback_collisionFilterGroup_get(swigCPtr, this);
\r
82 public void setCollisionFilterMask(short value) {
\r
83 gdxBulletJNI.ConvexResultCallback_collisionFilterMask_set(swigCPtr, this, value);
\r
86 public short getCollisionFilterMask() {
\r
87 return gdxBulletJNI.ConvexResultCallback_collisionFilterMask_get(swigCPtr, this);
\r
90 public ConvexResultCallback() {
\r
91 this(gdxBulletJNI.new_ConvexResultCallback(), true);
\r
92 gdxBulletJNI.ConvexResultCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
\r
95 public boolean hasHit() {
\r
96 return gdxBulletJNI.ConvexResultCallback_hasHit(swigCPtr, this);
\r
99 public boolean needsCollision(btBroadphaseProxy proxy0) {
\r
100 return (getClass() == ConvexResultCallback.class) ? gdxBulletJNI.ConvexResultCallback_needsCollision(swigCPtr, this, btBroadphaseProxy.getCPtr(proxy0), proxy0) : gdxBulletJNI.ConvexResultCallback_needsCollisionSwigExplicitConvexResultCallback(swigCPtr, this, btBroadphaseProxy.getCPtr(proxy0), proxy0);
\r
103 public float addSingleResult(LocalConvexResult convexResult, boolean normalInWorldSpace) {
\r
104 return gdxBulletJNI.ConvexResultCallback_addSingleResult(swigCPtr, this, LocalConvexResult.getCPtr(convexResult), convexResult, normalInWorldSpace);
\r