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;
14 import com.badlogic.gdx.math.Matrix4;
16 public class ContactCache extends BulletBase {
17 private long swigCPtr;
19 protected ContactCache(final String className, long cPtr, boolean cMemoryOwn) {
20 super(className, cPtr, cMemoryOwn);
24 protected ContactCache(long cPtr, boolean cMemoryOwn) {
25 this("ContactCache", cPtr, cMemoryOwn);
29 public static long getCPtr(ContactCache obj) {
30 return (obj == null) ? 0 : obj.swigCPtr;
34 protected void finalize() throws Throwable {
40 @Override protected synchronized void delete() {
44 gdxBulletJNI.delete_ContactCache(swigCPtr);
51 protected void swigDirectorDisconnect() {
56 public void swigReleaseOwnership() {
58 gdxBulletJNI.ContactCache_change_ownership(this, swigCPtr, false);
61 public void swigTakeOwnership() {
63 gdxBulletJNI.ContactCache_change_ownership(this, swigCPtr, true);
66 public ContactCache() {
71 public void setCacheTime(float value) {
72 gdxBulletJNI.ContactCache_cacheTime_set(swigCPtr, this, value);
75 public float getCacheTime() {
76 return gdxBulletJNI.ContactCache_cacheTime_get(swigCPtr, this);
79 private ContactCache(boolean dummy) {
80 this(gdxBulletJNI.new_ContactCache(dummy), true);
81 gdxBulletJNI.ContactCache_director_connect(this, swigCPtr, swigCMemOwn, true);
84 public void enable() {
85 gdxBulletJNI.ContactCache_enable(swigCPtr, this);
88 public void disable() {
89 gdxBulletJNI.ContactCache_disable(swigCPtr, this);
92 public boolean isEnabled() {
93 return gdxBulletJNI.ContactCache_isEnabled(swigCPtr, this);
96 public void onContactStarted(btPersistentManifold manifold, boolean match0, boolean match1) {
97 gdxBulletJNI.ContactCache_onContactStarted(swigCPtr, this, btPersistentManifold.getCPtr(manifold), manifold, match0, match1);
100 public void onContactEnded(btCollisionObject colObj0, boolean match0, btCollisionObject colObj1, boolean match1) {
101 gdxBulletJNI.ContactCache_onContactEnded(swigCPtr, this, btCollisionObject.getCPtr(colObj0), colObj0, match0, btCollisionObject.getCPtr(colObj1), colObj1, match1);
104 public void clear() {
105 gdxBulletJNI.ContactCache_clear(swigCPtr, this);
108 public void update(float delta) {
109 gdxBulletJNI.ContactCache_update(swigCPtr, this, delta);