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 btManifoldPoint extends BulletBase { 19 private long swigCPtr; 20 21 protected btManifoldPoint(final String className, long cPtr, boolean cMemoryOwn) { 22 super(className, cPtr, cMemoryOwn); 23 swigCPtr = cPtr; 24 } 25 26 /** Construct a new btManifoldPoint, normally you should not need this constructor it's intended for low-level usage. */ 27 public btManifoldPoint(long cPtr, boolean cMemoryOwn) { 28 this("btManifoldPoint", cPtr, cMemoryOwn); 29 construct(); 30 } 31 32 @Override 33 protected void reset(long cPtr, boolean cMemoryOwn) { 34 if (!destroyed) 35 destroy(); 36 super.reset(swigCPtr = cPtr, cMemoryOwn); 37 } 38 39 public static long getCPtr(btManifoldPoint obj) { 40 return (obj == null) ? 0 : obj.swigCPtr; 41 } 42 43 @Override 44 protected void finalize() throws Throwable { 45 if (!destroyed) 46 destroy(); 47 super.finalize(); 48 } 49 50 @Override protected synchronized void delete() { 51 if (swigCPtr != 0) { 52 if (swigCMemOwn) { 53 swigCMemOwn = false; 54 CollisionJNI.delete_btManifoldPoint(swigCPtr); 55 } 56 swigCPtr = 0; 57 } 58 super.delete(); 59 } 60 61 private final static btManifoldPoint temp = new btManifoldPoint(0, false); 62 /** Obtains a temporary instance, used by native methods that return a btManifoldPoint instance */ 63 protected static btManifoldPoint obtainTemp(long cPtr, boolean own) { 64 temp.reset(cPtr, own); 65 return temp; 66 } 67 68 private static btManifoldPoint[] argumentInstances = new btManifoldPoint[] {new btManifoldPoint(0, false), 69 new btManifoldPoint(0, false), new btManifoldPoint(0, false), new btManifoldPoint(0, false)}; 70 private static int argumentIndex = -1; 71 /** Obtains a temporary instance, used for callback methods with one or more btManifoldPoint arguments */ 72 protected static btManifoldPoint obtainForArgument(final long swigCPtr, boolean owner) { 73 btManifoldPoint instance = argumentInstances[argumentIndex = (argumentIndex + 1) & 3]; 74 instance.reset(swigCPtr, owner); 75 return instance; 76 } 77 78 public btManifoldPoint() { 79 this(CollisionJNI.new_btManifoldPoint__SWIG_0(), true); 80 } 81 82 public btManifoldPoint(Vector3 pointA, Vector3 pointB, Vector3 normal, float distance) { 83 this(CollisionJNI.new_btManifoldPoint__SWIG_1(pointA, pointB, normal, distance), true); 84 } 85 86 public void setDistance1(float value) { 87 CollisionJNI.btManifoldPoint_distance1_set(swigCPtr, this, value); 88 } 89 90 public float getDistance1() { 91 return CollisionJNI.btManifoldPoint_distance1_get(swigCPtr, this); 92 } 93 94 public void setCombinedFriction(float value) { 95 CollisionJNI.btManifoldPoint_combinedFriction_set(swigCPtr, this, value); 96 } 97 98 public float getCombinedFriction() { 99 return CollisionJNI.btManifoldPoint_combinedFriction_get(swigCPtr, this); 100 } 101 102 public void setCombinedRollingFriction(float value) { 103 CollisionJNI.btManifoldPoint_combinedRollingFriction_set(swigCPtr, this, value); 104 } 105 106 public float getCombinedRollingFriction() { 107 return CollisionJNI.btManifoldPoint_combinedRollingFriction_get(swigCPtr, this); 108 } 109 110 public void setCombinedRestitution(float value) { 111 CollisionJNI.btManifoldPoint_combinedRestitution_set(swigCPtr, this, value); 112 } 113 114 public float getCombinedRestitution() { 115 return CollisionJNI.btManifoldPoint_combinedRestitution_get(swigCPtr, this); 116 } 117 118 public void setPartId0(int value) { 119 CollisionJNI.btManifoldPoint_partId0_set(swigCPtr, this, value); 120 } 121 122 public int getPartId0() { 123 return CollisionJNI.btManifoldPoint_partId0_get(swigCPtr, this); 124 } 125 126 public void setPartId1(int value) { 127 CollisionJNI.btManifoldPoint_partId1_set(swigCPtr, this, value); 128 } 129 130 public int getPartId1() { 131 return CollisionJNI.btManifoldPoint_partId1_get(swigCPtr, this); 132 } 133 134 public void setIndex0(int value) { 135 CollisionJNI.btManifoldPoint_index0_set(swigCPtr, this, value); 136 } 137 138 public int getIndex0() { 139 return CollisionJNI.btManifoldPoint_index0_get(swigCPtr, this); 140 } 141 142 public void setIndex1(int value) { 143 CollisionJNI.btManifoldPoint_index1_set(swigCPtr, this, value); 144 } 145 146 public int getIndex1() { 147 return CollisionJNI.btManifoldPoint_index1_get(swigCPtr, this); 148 } 149 150 public void setUserPersistentData(long value) { 151 CollisionJNI.btManifoldPoint_userPersistentData_set(swigCPtr, this, value); 152 } 153 154 public long getUserPersistentData() { 155 return CollisionJNI.btManifoldPoint_userPersistentData_get(swigCPtr, this); 156 } 157 158 public void setLateralFrictionInitialized(boolean value) { 159 CollisionJNI.btManifoldPoint_lateralFrictionInitialized_set(swigCPtr, this, value); 160 } 161 162 public boolean getLateralFrictionInitialized() { 163 return CollisionJNI.btManifoldPoint_lateralFrictionInitialized_get(swigCPtr, this); 164 } 165 166 public void setAppliedImpulse(float value) { 167 CollisionJNI.btManifoldPoint_appliedImpulse_set(swigCPtr, this, value); 168 } 169 170 public float getAppliedImpulse() { 171 return CollisionJNI.btManifoldPoint_appliedImpulse_get(swigCPtr, this); 172 } 173 174 public void setAppliedImpulseLateral1(float value) { 175 CollisionJNI.btManifoldPoint_appliedImpulseLateral1_set(swigCPtr, this, value); 176 } 177 178 public float getAppliedImpulseLateral1() { 179 return CollisionJNI.btManifoldPoint_appliedImpulseLateral1_get(swigCPtr, this); 180 } 181 182 public void setAppliedImpulseLateral2(float value) { 183 CollisionJNI.btManifoldPoint_appliedImpulseLateral2_set(swigCPtr, this, value); 184 } 185 186 public float getAppliedImpulseLateral2() { 187 return CollisionJNI.btManifoldPoint_appliedImpulseLateral2_get(swigCPtr, this); 188 } 189 190 public void setContactMotion1(float value) { 191 CollisionJNI.btManifoldPoint_contactMotion1_set(swigCPtr, this, value); 192 } 193 194 public float getContactMotion1() { 195 return CollisionJNI.btManifoldPoint_contactMotion1_get(swigCPtr, this); 196 } 197 198 public void setContactMotion2(float value) { 199 CollisionJNI.btManifoldPoint_contactMotion2_set(swigCPtr, this, value); 200 } 201 202 public float getContactMotion2() { 203 return CollisionJNI.btManifoldPoint_contactMotion2_get(swigCPtr, this); 204 } 205 206 public void setContactCFM1(float value) { 207 CollisionJNI.btManifoldPoint_contactCFM1_set(swigCPtr, this, value); 208 } 209 210 public float getContactCFM1() { 211 return CollisionJNI.btManifoldPoint_contactCFM1_get(swigCPtr, this); 212 } 213 214 public void setContactCFM2(float value) { 215 CollisionJNI.btManifoldPoint_contactCFM2_set(swigCPtr, this, value); 216 } 217 218 public float getContactCFM2() { 219 return CollisionJNI.btManifoldPoint_contactCFM2_get(swigCPtr, this); 220 } 221 222 public void setLifeTime(int value) { 223 CollisionJNI.btManifoldPoint_lifeTime_set(swigCPtr, this, value); 224 } 225 226 public int getLifeTime() { 227 return CollisionJNI.btManifoldPoint_lifeTime_get(swigCPtr, this); 228 } 229 230 public float getDistance() { 231 return CollisionJNI.btManifoldPoint_getDistance(swigCPtr, this); 232 } 233 234 public void setDistance(float dist) { 235 CollisionJNI.btManifoldPoint_setDistance(swigCPtr, this, dist); 236 } 237 238 public int getUserValue() { 239 return CollisionJNI.btManifoldPoint_getUserValue(swigCPtr, this); 240 } 241 242 public void setUserValue(int value) { 243 CollisionJNI.btManifoldPoint_setUserValue(swigCPtr, this, value); 244 } 245 246 public void getLocalPointA(Vector3 out) { 247 CollisionJNI.btManifoldPoint_getLocalPointA(swigCPtr, this, out); 248 } 249 250 public void setLocalPointA(Vector3 value) { 251 CollisionJNI.btManifoldPoint_setLocalPointA(swigCPtr, this, value); 252 } 253 254 public void getLocalPointB(Vector3 out) { 255 CollisionJNI.btManifoldPoint_getLocalPointB(swigCPtr, this, out); 256 } 257 258 public void setLocalPointB(Vector3 value) { 259 CollisionJNI.btManifoldPoint_setLocalPointB(swigCPtr, this, value); 260 } 261 262 public void getPositionWorldOnA(Vector3 out) { 263 CollisionJNI.btManifoldPoint_getPositionWorldOnA(swigCPtr, this, out); 264 } 265 266 public void setPositionWorldOnA(Vector3 value) { 267 CollisionJNI.btManifoldPoint_setPositionWorldOnA(swigCPtr, this, value); 268 } 269 270 public void getPositionWorldOnB(Vector3 out) { 271 CollisionJNI.btManifoldPoint_getPositionWorldOnB(swigCPtr, this, out); 272 } 273 274 public void setPositionWorldOnB(Vector3 value) { 275 CollisionJNI.btManifoldPoint_setPositionWorldOnB(swigCPtr, this, value); 276 } 277 278 public void getNormalWorldOnB(Vector3 out) { 279 CollisionJNI.btManifoldPoint_getNormalWorldOnB(swigCPtr, this, out); 280 } 281 282 public void setNormalWorldOnB(Vector3 value) { 283 CollisionJNI.btManifoldPoint_setNormalWorldOnB(swigCPtr, this, value); 284 } 285 286 public void getLateralFrictionDir1(Vector3 out) { 287 CollisionJNI.btManifoldPoint_getLateralFrictionDir1(swigCPtr, this, out); 288 } 289 290 public void setLateralFrictionDir1(Vector3 value) { 291 CollisionJNI.btManifoldPoint_setLateralFrictionDir1(swigCPtr, this, value); 292 } 293 294 public void getLateralFrictionDir2(Vector3 out) { 295 CollisionJNI.btManifoldPoint_getLateralFrictionDir2(swigCPtr, this, out); 296 } 297 298 public void setLateralFrictionDir2(Vector3 value) { 299 CollisionJNI.btManifoldPoint_setLateralFrictionDir2(swigCPtr, this, value); 300 } 301 302 } 303