OSDN Git Service

Swig generated files
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / ContactCache.java
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 2.0.10
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;
10
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;
15
16 public class ContactCache extends BulletBase {
17         private long swigCPtr;
18         
19         protected ContactCache(final String className, long cPtr, boolean cMemoryOwn) {
20                 super(className, cPtr, cMemoryOwn);
21                 swigCPtr = cPtr;
22         }
23         
24         protected ContactCache(long cPtr, boolean cMemoryOwn) {
25                 this("ContactCache", cPtr, cMemoryOwn);
26                 construct();
27         }
28         
29         public static long getCPtr(ContactCache obj) {
30                 return (obj == null) ? 0 : obj.swigCPtr;
31         }
32
33         @Override
34         protected void finalize() throws Throwable {
35                 if (!destroyed)
36                         destroy();
37                 super.finalize();
38         }
39
40   @Override protected synchronized void delete() {
41                 if (swigCPtr != 0) {
42                         if (swigCMemOwn) {
43                                 swigCMemOwn = false;
44                                 gdxBulletJNI.delete_ContactCache(swigCPtr);
45                         }
46                         swigCPtr = 0;
47                 }
48                 super.delete();
49         }
50
51   protected void swigDirectorDisconnect() {
52     swigCMemOwn = false;
53     delete();
54   }
55
56   public void swigReleaseOwnership() {
57     swigCMemOwn = false;
58     gdxBulletJNI.ContactCache_change_ownership(this, swigCPtr, false);
59   }
60
61   public void swigTakeOwnership() {
62     swigCMemOwn = true;
63     gdxBulletJNI.ContactCache_change_ownership(this, swigCPtr, true);
64   }
65
66         public ContactCache() {
67                 this(false);
68                 enable();
69         }
70
71   public void setCacheTime(float value) {
72     gdxBulletJNI.ContactCache_cacheTime_set(swigCPtr, this, value);
73   }
74
75   public float getCacheTime() {
76     return gdxBulletJNI.ContactCache_cacheTime_get(swigCPtr, this);
77   }
78
79   private ContactCache(boolean dummy) {
80     this(gdxBulletJNI.new_ContactCache(dummy), true);
81     gdxBulletJNI.ContactCache_director_connect(this, swigCPtr, swigCMemOwn, true);
82   }
83
84   public void enable() {
85     gdxBulletJNI.ContactCache_enable(swigCPtr, this);
86   }
87
88   public void disable() {
89     gdxBulletJNI.ContactCache_disable(swigCPtr, this);
90   }
91
92   public boolean isEnabled() {
93     return gdxBulletJNI.ContactCache_isEnabled(swigCPtr, this);
94   }
95
96   public void onContactStarted(btPersistentManifold manifold, boolean match0, boolean match1) {
97     gdxBulletJNI.ContactCache_onContactStarted(swigCPtr, this, btPersistentManifold.getCPtr(manifold), manifold, match0, match1);
98   }
99
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);
102   }
103
104   public void clear() {
105     gdxBulletJNI.ContactCache_clear(swigCPtr, this);
106   }
107
108   public void update(float delta) {
109     gdxBulletJNI.ContactCache_update(swigCPtr, this, delta);
110   }
111
112 }