• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 ContactResultCallback extends BulletBase {
19 	private long swigCPtr;
20 
ContactResultCallback(final String className, long cPtr, boolean cMemoryOwn)21 	protected ContactResultCallback(final String className, long cPtr, boolean cMemoryOwn) {
22 		super(className, cPtr, cMemoryOwn);
23 		swigCPtr = cPtr;
24 	}
25 
26 	/** Construct a new ContactResultCallback, normally you should not need this constructor it's intended for low-level usage. */
ContactResultCallback(long cPtr, boolean cMemoryOwn)27 	public ContactResultCallback(long cPtr, boolean cMemoryOwn) {
28 		this("ContactResultCallback", 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(ContactResultCallback obj)39 	public static long getCPtr(ContactResultCallback 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_ContactResultCallback(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.ContactResultCallback_change_ownership(this, swigCPtr, false);
69   }
70 
swigTakeOwnership()71   public void swigTakeOwnership() {
72     swigCMemOwn = true;
73     CollisionJNI.ContactResultCallback_change_ownership(this, swigCPtr, true);
74   }
75 
setCollisionFilterGroup(short value)76   public void setCollisionFilterGroup(short value) {
77     CollisionJNI.ContactResultCallback_collisionFilterGroup_set(swigCPtr, this, value);
78   }
79 
getCollisionFilterGroup()80   public short getCollisionFilterGroup() {
81     return CollisionJNI.ContactResultCallback_collisionFilterGroup_get(swigCPtr, this);
82   }
83 
setCollisionFilterMask(short value)84   public void setCollisionFilterMask(short value) {
85     CollisionJNI.ContactResultCallback_collisionFilterMask_set(swigCPtr, this, value);
86   }
87 
getCollisionFilterMask()88   public short getCollisionFilterMask() {
89     return CollisionJNI.ContactResultCallback_collisionFilterMask_get(swigCPtr, this);
90   }
91 
ContactResultCallback()92   public ContactResultCallback() {
93     this(CollisionJNI.new_ContactResultCallback(), true);
94     CollisionJNI.ContactResultCallback_director_connect(this, swigCPtr, swigCMemOwn, true);
95   }
96 
needsCollision(btBroadphaseProxy proxy0)97   public boolean needsCollision(btBroadphaseProxy proxy0) {
98     return (getClass() == ContactResultCallback.class) ? CollisionJNI.ContactResultCallback_needsCollision(swigCPtr, this, btBroadphaseProxy.getCPtr(proxy0), proxy0) : CollisionJNI.ContactResultCallback_needsCollisionSwigExplicitContactResultCallback(swigCPtr, this, btBroadphaseProxy.getCPtr(proxy0), proxy0);
99   }
100 
addSingleResult(btManifoldPoint cp, btCollisionObjectWrapper colObj0Wrap, int partId0, int index0, btCollisionObjectWrapper colObj1Wrap, int partId1, int index1)101   public float addSingleResult(btManifoldPoint cp, btCollisionObjectWrapper colObj0Wrap, int partId0, int index0, btCollisionObjectWrapper colObj1Wrap, int partId1, int index1) {
102     return CollisionJNI.ContactResultCallback_addSingleResult(swigCPtr, this, btManifoldPoint.getCPtr(cp), cp, btCollisionObjectWrapper.getCPtr(colObj0Wrap), colObj0Wrap, partId0, index0, btCollisionObjectWrapper.getCPtr(colObj1Wrap), colObj1Wrap, partId1, index1);
103   }
104 
105 }
106