1 /* ---------------------------------------------------------------------------- 2 * This file was automatically generated by SWIG (http://www.swig.org). 3 * Version 3.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.collision; 10 11 import com.badlogic.gdx.physics.bullet.BulletBase; 12 import com.badlogic.gdx.physics.bullet.linearmath.*; 13 import com.badlogic.gdx.math.Vector3; 14 import com.badlogic.gdx.math.Quaternion; 15 import com.badlogic.gdx.math.Matrix3; 16 import com.badlogic.gdx.math.Matrix4; 17 18 public class ConvexResultCallback extends BulletBase { 19 private long swigCPtr; 20 ConvexResultCallback(final String className, long cPtr, boolean cMemoryOwn)21 protected ConvexResultCallback(final String className, long cPtr, boolean cMemoryOwn) { 22 super(className, cPtr, cMemoryOwn); 23 swigCPtr = cPtr; 24 } 25 26 /** Construct a new ConvexResultCallback, normally you should not need this constructor it's intended for low-level usage. */ ConvexResultCallback(long cPtr, boolean cMemoryOwn)27 public ConvexResultCallback(long cPtr, boolean cMemoryOwn) { 28 this("ConvexResultCallback", cPtr, cMemoryOwn); 29 construct(); 30 } 31 32 @Override reset(long cPtr, boolean cMemoryOwn)33 protected void reset(long cPtr, boolean cMemoryOwn) { 34 if (!destroyed) 35 destroy(); 36 super.reset(swigCPtr = cPtr, cMemoryOwn); 37 } 38 getCPtr(ConvexResultCallback obj)39 public static long getCPtr(ConvexResultCallback obj) { 40 return (obj == null) ? 0 : obj.swigCPtr; 41 } 42 43 @Override finalize()44 protected void finalize() throws Throwable { 45 if (!destroyed) 46 destroy(); 47 super.finalize(); 48 } 49 delete()50 @Override protected synchronized void delete() { 51 if (swigCPtr != 0) { 52 if (swigCMemOwn) { 53 swigCMemOwn = false; 54 CollisionJNI.delete_ConvexResultCallback(swigCPtr); 55 } 56 swigCPtr = 0; 57 } 58 super.delete(); 59 } 60 swigDirectorDisconnect()61 protected void swigDirectorDisconnect() { 62 swigCMemOwn = false; 63 delete(); 64 } 65 swigReleaseOwnership()66 public void swigReleaseOwnership() { 67 swigCMemOwn = false; 68 CollisionJNI.ConvexResultCallback_change_ownership(this, swigCPtr, false); 69 } 70 swigTakeOwnership()71 public void swigTakeOwnership() { 72 swigCMemOwn = true; 73 CollisionJNI.ConvexResultCallback_change_ownership(this, swigCPtr, true); 74 } 75 setClosestHitFraction(float value)76 public void setClosestHitFraction(float value) { 77 CollisionJNI.ConvexResultCallback_closestHitFraction_set(swigCPtr, this, value); 78 } 79 getClosestHitFraction()80 public float getClosestHitFraction() { 81 return CollisionJNI.ConvexResultCallback_closestHitFraction_get(swigCPtr, this); 82 } 83 setCollisionFilterGroup(short value)84 public void setCollisionFilterGroup(short value) { 85 CollisionJNI.ConvexResultCallback_collisionFilterGroup_set(swigCPtr, this, value); 86 } 87 getCollisionFilterGroup()88 public short getCollisionFilterGroup() { 89 return CollisionJNI.ConvexResultCallback_collisionFilterGroup_get(swigCPtr, this); 90 } 91 setCollisionFilterMask(short value)92 public void setCollisionFilterMask(short value) { 93 CollisionJNI.ConvexResultCallback_collisionFilterMask_set(swigCPtr, this, value); 94 } 95 getCollisionFilterMask()96 public short getCollisionFilterMask() { 97 return CollisionJNI.ConvexResultCallback_collisionFilterMask_get(swigCPtr, this); 98 } 99 ConvexResultCallback()100 public ConvexResultCallback() { 101 this(CollisionJNI.new_ConvexResultCallback(), true); 102 CollisionJNI.ConvexResultCallback_director_connect(this, swigCPtr, swigCMemOwn, true); 103 } 104 hasHit()105 public boolean hasHit() { 106 return CollisionJNI.ConvexResultCallback_hasHit(swigCPtr, this); 107 } 108 needsCollision(btBroadphaseProxy proxy0)109 public boolean needsCollision(btBroadphaseProxy proxy0) { 110 return (getClass() == ConvexResultCallback.class) ? CollisionJNI.ConvexResultCallback_needsCollision(swigCPtr, this, btBroadphaseProxy.getCPtr(proxy0), proxy0) : CollisionJNI.ConvexResultCallback_needsCollisionSwigExplicitConvexResultCallback(swigCPtr, this, btBroadphaseProxy.getCPtr(proxy0), proxy0); 111 } 112 addSingleResult(LocalConvexResult convexResult, boolean normalInWorldSpace)113 public float addSingleResult(LocalConvexResult convexResult, boolean normalInWorldSpace) { 114 return CollisionJNI.ConvexResultCallback_addSingleResult(swigCPtr, this, LocalConvexResult.getCPtr(convexResult), convexResult, normalInWorldSpace); 115 } 116 117 } 118