1 /* ----------------------------------------------------------------------------
\r
2 * This file was automatically generated by SWIG (http://www.swig.org).
\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
9 package com.badlogic.gdx.physics.bullet;
\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
16 public class btManifoldPoint extends BulletBase {
\r
17 private long swigCPtr;
\r
19 protected btManifoldPoint(final String className, long cPtr, boolean cMemoryOwn) {
\r
20 super(className, cPtr, cMemoryOwn);
\r
24 protected btManifoldPoint(long cPtr, boolean cMemoryOwn) {
\r
25 this("btManifoldPoint", cPtr, cMemoryOwn);
\r
29 public static long getCPtr(btManifoldPoint obj) {
\r
30 return (obj == null) ? 0 : obj.swigCPtr;
\r
34 protected void finalize() throws Throwable {
\r
40 @Override protected synchronized void delete() {
\r
41 if (swigCPtr != 0) {
\r
43 swigCMemOwn = false;
\r
44 gdxBulletJNI.delete_btManifoldPoint(swigCPtr);
\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
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
60 protected btManifoldPoint newObject() {
\r
61 return new btManifoldPoint(0, false);
\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
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
76 public btManifoldPoint() {
\r
77 this(gdxBulletJNI.new_btManifoldPoint__SWIG_0(), true);
\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
84 public void setLocalPointA(btVector3 value) {
\r
85 gdxBulletJNI.btManifoldPoint_localPointA_set(swigCPtr, this, btVector3.getCPtr(value), value);
\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
93 public void setLocalPointB(btVector3 value) {
\r
94 gdxBulletJNI.btManifoldPoint_localPointB_set(swigCPtr, this, btVector3.getCPtr(value), value);
\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
102 public void setPositionWorldOnB(btVector3 value) {
\r
103 gdxBulletJNI.btManifoldPoint_positionWorldOnB_set(swigCPtr, this, btVector3.getCPtr(value), value);
\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
111 public void setPositionWorldOnA(btVector3 value) {
\r
112 gdxBulletJNI.btManifoldPoint_positionWorldOnA_set(swigCPtr, this, btVector3.getCPtr(value), value);
\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
120 public void setNormalWorldOnB(btVector3 value) {
\r
121 gdxBulletJNI.btManifoldPoint_normalWorldOnB_set(swigCPtr, this, btVector3.getCPtr(value), value);
\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
129 public void setDistance1(float value) {
\r
130 gdxBulletJNI.btManifoldPoint_distance1_set(swigCPtr, this, value);
\r
133 public float getDistance1() {
\r
134 return gdxBulletJNI.btManifoldPoint_distance1_get(swigCPtr, this);
\r
137 public void setCombinedFriction(float value) {
\r
138 gdxBulletJNI.btManifoldPoint_combinedFriction_set(swigCPtr, this, value);
\r
141 public float getCombinedFriction() {
\r
142 return gdxBulletJNI.btManifoldPoint_combinedFriction_get(swigCPtr, this);
\r
145 public void setCombinedRollingFriction(float value) {
\r
146 gdxBulletJNI.btManifoldPoint_combinedRollingFriction_set(swigCPtr, this, value);
\r
149 public float getCombinedRollingFriction() {
\r
150 return gdxBulletJNI.btManifoldPoint_combinedRollingFriction_get(swigCPtr, this);
\r
153 public void setCombinedRestitution(float value) {
\r
154 gdxBulletJNI.btManifoldPoint_combinedRestitution_set(swigCPtr, this, value);
\r
157 public float getCombinedRestitution() {
\r
158 return gdxBulletJNI.btManifoldPoint_combinedRestitution_get(swigCPtr, this);
\r
161 public void setPartId0(int value) {
\r
162 gdxBulletJNI.btManifoldPoint_partId0_set(swigCPtr, this, value);
\r
165 public int getPartId0() {
\r
166 return gdxBulletJNI.btManifoldPoint_partId0_get(swigCPtr, this);
\r
169 public void setPartId1(int value) {
\r
170 gdxBulletJNI.btManifoldPoint_partId1_set(swigCPtr, this, value);
\r
173 public int getPartId1() {
\r
174 return gdxBulletJNI.btManifoldPoint_partId1_get(swigCPtr, this);
\r
177 public void setIndex0(int value) {
\r
178 gdxBulletJNI.btManifoldPoint_index0_set(swigCPtr, this, value);
\r
181 public int getIndex0() {
\r
182 return gdxBulletJNI.btManifoldPoint_index0_get(swigCPtr, this);
\r
185 public void setIndex1(int value) {
\r
186 gdxBulletJNI.btManifoldPoint_index1_set(swigCPtr, this, value);
\r
189 public int getIndex1() {
\r
190 return gdxBulletJNI.btManifoldPoint_index1_get(swigCPtr, this);
\r
193 public void setUserPersistentData(SWIGTYPE_p_void value) {
\r
194 gdxBulletJNI.btManifoldPoint_userPersistentData_set(swigCPtr, this, SWIGTYPE_p_void.getCPtr(value));
\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
202 public void setLateralFrictionInitialized(boolean value) {
\r
203 gdxBulletJNI.btManifoldPoint_lateralFrictionInitialized_set(swigCPtr, this, value);
\r
206 public boolean getLateralFrictionInitialized() {
\r
207 return gdxBulletJNI.btManifoldPoint_lateralFrictionInitialized_get(swigCPtr, this);
\r
210 public void setAppliedImpulse(float value) {
\r
211 gdxBulletJNI.btManifoldPoint_appliedImpulse_set(swigCPtr, this, value);
\r
214 public float getAppliedImpulse() {
\r
215 return gdxBulletJNI.btManifoldPoint_appliedImpulse_get(swigCPtr, this);
\r
218 public void setAppliedImpulseLateral1(float value) {
\r
219 gdxBulletJNI.btManifoldPoint_appliedImpulseLateral1_set(swigCPtr, this, value);
\r
222 public float getAppliedImpulseLateral1() {
\r
223 return gdxBulletJNI.btManifoldPoint_appliedImpulseLateral1_get(swigCPtr, this);
\r
226 public void setAppliedImpulseLateral2(float value) {
\r
227 gdxBulletJNI.btManifoldPoint_appliedImpulseLateral2_set(swigCPtr, this, value);
\r
230 public float getAppliedImpulseLateral2() {
\r
231 return gdxBulletJNI.btManifoldPoint_appliedImpulseLateral2_get(swigCPtr, this);
\r
234 public void setContactMotion1(float value) {
\r
235 gdxBulletJNI.btManifoldPoint_contactMotion1_set(swigCPtr, this, value);
\r
238 public float getContactMotion1() {
\r
239 return gdxBulletJNI.btManifoldPoint_contactMotion1_get(swigCPtr, this);
\r
242 public void setContactMotion2(float value) {
\r
243 gdxBulletJNI.btManifoldPoint_contactMotion2_set(swigCPtr, this, value);
\r
246 public float getContactMotion2() {
\r
247 return gdxBulletJNI.btManifoldPoint_contactMotion2_get(swigCPtr, this);
\r
250 public void setContactCFM1(float value) {
\r
251 gdxBulletJNI.btManifoldPoint_contactCFM1_set(swigCPtr, this, value);
\r
254 public float getContactCFM1() {
\r
255 return gdxBulletJNI.btManifoldPoint_contactCFM1_get(swigCPtr, this);
\r
258 public void setContactCFM2(float value) {
\r
259 gdxBulletJNI.btManifoldPoint_contactCFM2_set(swigCPtr, this, value);
\r
262 public float getContactCFM2() {
\r
263 return gdxBulletJNI.btManifoldPoint_contactCFM2_get(swigCPtr, this);
\r
266 public void setLifeTime(int value) {
\r
267 gdxBulletJNI.btManifoldPoint_lifeTime_set(swigCPtr, this, value);
\r
270 public int getLifeTime() {
\r
271 return gdxBulletJNI.btManifoldPoint_lifeTime_get(swigCPtr, this);
\r
274 public void setLateralFrictionDir1(btVector3 value) {
\r
275 gdxBulletJNI.btManifoldPoint_lateralFrictionDir1_set(swigCPtr, this, btVector3.getCPtr(value), value);
\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
283 public void setLateralFrictionDir2(btVector3 value) {
\r
284 gdxBulletJNI.btManifoldPoint_lateralFrictionDir2_set(swigCPtr, this, btVector3.getCPtr(value), value);
\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
292 public float getDistance() {
\r
293 return gdxBulletJNI.btManifoldPoint_getDistance(swigCPtr, this);
\r
296 public void setDistance(float dist) {
\r
297 gdxBulletJNI.btManifoldPoint_setDistance(swigCPtr, this, dist);
\r
300 public int getUserValue() {
\r
301 return gdxBulletJNI.btManifoldPoint_getUserValue(swigCPtr, this);
\r
304 public void setUserValue(int value) {
\r
305 gdxBulletJNI.btManifoldPoint_setUserValue(swigCPtr, this, value);
\r