OSDN Git Service

f12a63c17f9bb098b0476ceec596fc60470ac7d7
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / btManifoldPoint.java
1 /* ----------------------------------------------------------------------------\r
2  * This file was automatically generated by SWIG (http://www.swig.org).\r
3  * Version 2.0.10\r
4  *\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
8 \r
9 package com.badlogic.gdx.physics.bullet;\r
10 \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
15 \r
16 public class btManifoldPoint extends BulletBase {\r
17         private long swigCPtr;\r
18         \r
19         protected btManifoldPoint(final String className, long cPtr, boolean cMemoryOwn) {\r
20                 super(className, cPtr, cMemoryOwn);\r
21                 swigCPtr = cPtr;\r
22         }\r
23         \r
24         protected btManifoldPoint(long cPtr, boolean cMemoryOwn) {\r
25                 this("btManifoldPoint", cPtr, cMemoryOwn);\r
26                 construct();\r
27         }\r
28         \r
29         public static long getCPtr(btManifoldPoint obj) {\r
30                 return (obj == null) ? 0 : obj.swigCPtr;\r
31         }\r
32 \r
33         @Override\r
34         protected void finalize() throws Throwable {\r
35                 if (!destroyed)\r
36                         destroy();\r
37                 super.finalize();\r
38         }\r
39 \r
40   @Override protected synchronized void delete() {\r
41                 if (swigCPtr != 0) {\r
42                         if (swigCMemOwn) {\r
43                                 swigCMemOwn = false;\r
44                                 gdxBulletJNI.delete_btManifoldPoint(swigCPtr);\r
45                         }\r
46                         swigCPtr = 0;\r
47                 }\r
48                 super.delete();\r
49         }\r
50 \r
51         /** Temporary instance, use by native methods that return a btManifoldPoint instance */\r
52         protected final static btManifoldPoint temp = new btManifoldPoint(0, false);\r
53         public static btManifoldPoint internalTemp(long cPtr, boolean own) {\r
54                 temp.reset(cPtr, own);\r
55                 return temp;\r
56         }\r
57         /** Pool of btManifoldPoint instances, used by director interface to provide the arguments. */\r
58         protected static final com.badlogic.gdx.utils.Pool<btManifoldPoint> pool = new com.badlogic.gdx.utils.Pool<btManifoldPoint>() {\r
59                 @Override\r
60                 protected btManifoldPoint newObject() {\r
61                         return new btManifoldPoint(0, false);\r
62                 }\r
63         };\r
64         /** Reuses a previous freed instance or creates a new instance and set it to reflect the specified native object */\r
65         public static btManifoldPoint obtain(long cPtr, boolean own) {\r
66                 final btManifoldPoint result = pool.obtain();\r
67                 result.reset(cPtr, own);\r
68                 return result;\r
69         }\r
70         /** delete the native object if required and allow the instance to be reused by the obtain method */\r
71         public static void free(final btManifoldPoint inst) {\r
72                 inst.dispose();\r
73                 pool.free(inst);\r
74         }\r
75 \r
76   public btManifoldPoint() {\r
77     this(gdxBulletJNI.new_btManifoldPoint__SWIG_0(), true);\r
78   }\r
79 \r
80   public btManifoldPoint(Vector3 pointA, Vector3 pointB, Vector3 normal, float distance) {\r
81     this(gdxBulletJNI.new_btManifoldPoint__SWIG_1(pointA, pointB, normal, distance), true);\r
82   }\r
83 \r
84   public void setLocalPointA(btVector3 value) {\r
85     gdxBulletJNI.btManifoldPoint_localPointA_set(swigCPtr, this, btVector3.getCPtr(value), value);\r
86   }\r
87 \r
88   public btVector3 getLocalPointA() {\r
89     long cPtr = gdxBulletJNI.btManifoldPoint_localPointA_get(swigCPtr, this);\r
90     return (cPtr == 0) ? null : new btVector3(cPtr, false);\r
91   }\r
92 \r
93   public void setLocalPointB(btVector3 value) {\r
94     gdxBulletJNI.btManifoldPoint_localPointB_set(swigCPtr, this, btVector3.getCPtr(value), value);\r
95   }\r
96 \r
97   public btVector3 getLocalPointB() {\r
98     long cPtr = gdxBulletJNI.btManifoldPoint_localPointB_get(swigCPtr, this);\r
99     return (cPtr == 0) ? null : new btVector3(cPtr, false);\r
100   }\r
101 \r
102   public void setPositionWorldOnB(btVector3 value) {\r
103     gdxBulletJNI.btManifoldPoint_positionWorldOnB_set(swigCPtr, this, btVector3.getCPtr(value), value);\r
104   }\r
105 \r
106   public btVector3 getPositionWorldOnB() {\r
107     long cPtr = gdxBulletJNI.btManifoldPoint_positionWorldOnB_get(swigCPtr, this);\r
108     return (cPtr == 0) ? null : new btVector3(cPtr, false);\r
109   }\r
110 \r
111   public void setPositionWorldOnA(btVector3 value) {\r
112     gdxBulletJNI.btManifoldPoint_positionWorldOnA_set(swigCPtr, this, btVector3.getCPtr(value), value);\r
113   }\r
114 \r
115   public btVector3 getPositionWorldOnA() {\r
116     long cPtr = gdxBulletJNI.btManifoldPoint_positionWorldOnA_get(swigCPtr, this);\r
117     return (cPtr == 0) ? null : new btVector3(cPtr, false);\r
118   }\r
119 \r
120   public void setNormalWorldOnB(btVector3 value) {\r
121     gdxBulletJNI.btManifoldPoint_normalWorldOnB_set(swigCPtr, this, btVector3.getCPtr(value), value);\r
122   }\r
123 \r
124   public btVector3 getNormalWorldOnB() {\r
125     long cPtr = gdxBulletJNI.btManifoldPoint_normalWorldOnB_get(swigCPtr, this);\r
126     return (cPtr == 0) ? null : new btVector3(cPtr, false);\r
127   }\r
128 \r
129   public void setDistance1(float value) {\r
130     gdxBulletJNI.btManifoldPoint_distance1_set(swigCPtr, this, value);\r
131   }\r
132 \r
133   public float getDistance1() {\r
134     return gdxBulletJNI.btManifoldPoint_distance1_get(swigCPtr, this);\r
135   }\r
136 \r
137   public void setCombinedFriction(float value) {\r
138     gdxBulletJNI.btManifoldPoint_combinedFriction_set(swigCPtr, this, value);\r
139   }\r
140 \r
141   public float getCombinedFriction() {\r
142     return gdxBulletJNI.btManifoldPoint_combinedFriction_get(swigCPtr, this);\r
143   }\r
144 \r
145   public void setCombinedRollingFriction(float value) {\r
146     gdxBulletJNI.btManifoldPoint_combinedRollingFriction_set(swigCPtr, this, value);\r
147   }\r
148 \r
149   public float getCombinedRollingFriction() {\r
150     return gdxBulletJNI.btManifoldPoint_combinedRollingFriction_get(swigCPtr, this);\r
151   }\r
152 \r
153   public void setCombinedRestitution(float value) {\r
154     gdxBulletJNI.btManifoldPoint_combinedRestitution_set(swigCPtr, this, value);\r
155   }\r
156 \r
157   public float getCombinedRestitution() {\r
158     return gdxBulletJNI.btManifoldPoint_combinedRestitution_get(swigCPtr, this);\r
159   }\r
160 \r
161   public void setPartId0(int value) {\r
162     gdxBulletJNI.btManifoldPoint_partId0_set(swigCPtr, this, value);\r
163   }\r
164 \r
165   public int getPartId0() {\r
166     return gdxBulletJNI.btManifoldPoint_partId0_get(swigCPtr, this);\r
167   }\r
168 \r
169   public void setPartId1(int value) {\r
170     gdxBulletJNI.btManifoldPoint_partId1_set(swigCPtr, this, value);\r
171   }\r
172 \r
173   public int getPartId1() {\r
174     return gdxBulletJNI.btManifoldPoint_partId1_get(swigCPtr, this);\r
175   }\r
176 \r
177   public void setIndex0(int value) {\r
178     gdxBulletJNI.btManifoldPoint_index0_set(swigCPtr, this, value);\r
179   }\r
180 \r
181   public int getIndex0() {\r
182     return gdxBulletJNI.btManifoldPoint_index0_get(swigCPtr, this);\r
183   }\r
184 \r
185   public void setIndex1(int value) {\r
186     gdxBulletJNI.btManifoldPoint_index1_set(swigCPtr, this, value);\r
187   }\r
188 \r
189   public int getIndex1() {\r
190     return gdxBulletJNI.btManifoldPoint_index1_get(swigCPtr, this);\r
191   }\r
192 \r
193   public void setUserPersistentData(SWIGTYPE_p_void value) {\r
194     gdxBulletJNI.btManifoldPoint_userPersistentData_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));\r
195   }\r
196 \r
197   public SWIGTYPE_p_void getUserPersistentData() {\r
198     long cPtr = gdxBulletJNI.btManifoldPoint_userPersistentData_get(swigCPtr, this);\r
199     return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);\r
200   }\r
201 \r
202   public void setLateralFrictionInitialized(boolean value) {\r
203     gdxBulletJNI.btManifoldPoint_lateralFrictionInitialized_set(swigCPtr, this, value);\r
204   }\r
205 \r
206   public boolean getLateralFrictionInitialized() {\r
207     return gdxBulletJNI.btManifoldPoint_lateralFrictionInitialized_get(swigCPtr, this);\r
208   }\r
209 \r
210   public void setAppliedImpulse(float value) {\r
211     gdxBulletJNI.btManifoldPoint_appliedImpulse_set(swigCPtr, this, value);\r
212   }\r
213 \r
214   public float getAppliedImpulse() {\r
215     return gdxBulletJNI.btManifoldPoint_appliedImpulse_get(swigCPtr, this);\r
216   }\r
217 \r
218   public void setAppliedImpulseLateral1(float value) {\r
219     gdxBulletJNI.btManifoldPoint_appliedImpulseLateral1_set(swigCPtr, this, value);\r
220   }\r
221 \r
222   public float getAppliedImpulseLateral1() {\r
223     return gdxBulletJNI.btManifoldPoint_appliedImpulseLateral1_get(swigCPtr, this);\r
224   }\r
225 \r
226   public void setAppliedImpulseLateral2(float value) {\r
227     gdxBulletJNI.btManifoldPoint_appliedImpulseLateral2_set(swigCPtr, this, value);\r
228   }\r
229 \r
230   public float getAppliedImpulseLateral2() {\r
231     return gdxBulletJNI.btManifoldPoint_appliedImpulseLateral2_get(swigCPtr, this);\r
232   }\r
233 \r
234   public void setContactMotion1(float value) {\r
235     gdxBulletJNI.btManifoldPoint_contactMotion1_set(swigCPtr, this, value);\r
236   }\r
237 \r
238   public float getContactMotion1() {\r
239     return gdxBulletJNI.btManifoldPoint_contactMotion1_get(swigCPtr, this);\r
240   }\r
241 \r
242   public void setContactMotion2(float value) {\r
243     gdxBulletJNI.btManifoldPoint_contactMotion2_set(swigCPtr, this, value);\r
244   }\r
245 \r
246   public float getContactMotion2() {\r
247     return gdxBulletJNI.btManifoldPoint_contactMotion2_get(swigCPtr, this);\r
248   }\r
249 \r
250   public void setContactCFM1(float value) {\r
251     gdxBulletJNI.btManifoldPoint_contactCFM1_set(swigCPtr, this, value);\r
252   }\r
253 \r
254   public float getContactCFM1() {\r
255     return gdxBulletJNI.btManifoldPoint_contactCFM1_get(swigCPtr, this);\r
256   }\r
257 \r
258   public void setContactCFM2(float value) {\r
259     gdxBulletJNI.btManifoldPoint_contactCFM2_set(swigCPtr, this, value);\r
260   }\r
261 \r
262   public float getContactCFM2() {\r
263     return gdxBulletJNI.btManifoldPoint_contactCFM2_get(swigCPtr, this);\r
264   }\r
265 \r
266   public void setLifeTime(int value) {\r
267     gdxBulletJNI.btManifoldPoint_lifeTime_set(swigCPtr, this, value);\r
268   }\r
269 \r
270   public int getLifeTime() {\r
271     return gdxBulletJNI.btManifoldPoint_lifeTime_get(swigCPtr, this);\r
272   }\r
273 \r
274   public void setLateralFrictionDir1(btVector3 value) {\r
275     gdxBulletJNI.btManifoldPoint_lateralFrictionDir1_set(swigCPtr, this, btVector3.getCPtr(value), value);\r
276   }\r
277 \r
278   public btVector3 getLateralFrictionDir1() {\r
279     long cPtr = gdxBulletJNI.btManifoldPoint_lateralFrictionDir1_get(swigCPtr, this);\r
280     return (cPtr == 0) ? null : new btVector3(cPtr, false);\r
281   }\r
282 \r
283   public void setLateralFrictionDir2(btVector3 value) {\r
284     gdxBulletJNI.btManifoldPoint_lateralFrictionDir2_set(swigCPtr, this, btVector3.getCPtr(value), value);\r
285   }\r
286 \r
287   public btVector3 getLateralFrictionDir2() {\r
288     long cPtr = gdxBulletJNI.btManifoldPoint_lateralFrictionDir2_get(swigCPtr, this);\r
289     return (cPtr == 0) ? null : new btVector3(cPtr, false);\r
290   }\r
291 \r
292   public float getDistance() {\r
293     return gdxBulletJNI.btManifoldPoint_getDistance(swigCPtr, this);\r
294   }\r
295 \r
296   public void setDistance(float dist) {\r
297     gdxBulletJNI.btManifoldPoint_setDistance(swigCPtr, this, dist);\r
298   }\r
299 \r
300   public int getUserValue() {\r
301     return gdxBulletJNI.btManifoldPoint_getUserValue(swigCPtr, this);\r
302   }\r
303 \r
304   public void setUserValue(int value) {\r
305     gdxBulletJNI.btManifoldPoint_setUserValue(swigCPtr, this, value);\r
306   }\r
307 \r
308 }\r