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.dynamics; 10 11 import com.badlogic.gdx.physics.bullet.BulletBase; 12 import com.badlogic.gdx.physics.bullet.linearmath.*; 13 import com.badlogic.gdx.physics.bullet.collision.*; 14 import com.badlogic.gdx.math.Vector3; 15 import com.badlogic.gdx.math.Quaternion; 16 import com.badlogic.gdx.math.Matrix3; 17 import com.badlogic.gdx.math.Matrix4; 18 19 public class btSolverConstraint extends BulletBase { 20 private long swigCPtr; 21 22 protected btSolverConstraint(final String className, long cPtr, boolean cMemoryOwn) { 23 super(className, cPtr, cMemoryOwn); 24 swigCPtr = cPtr; 25 } 26 27 /** Construct a new btSolverConstraint, normally you should not need this constructor it's intended for low-level usage. */ 28 public btSolverConstraint(long cPtr, boolean cMemoryOwn) { 29 this("btSolverConstraint", cPtr, cMemoryOwn); 30 construct(); 31 } 32 33 @Override 34 protected void reset(long cPtr, boolean cMemoryOwn) { 35 if (!destroyed) 36 destroy(); 37 super.reset(swigCPtr = cPtr, cMemoryOwn); 38 } 39 40 public static long getCPtr(btSolverConstraint obj) { 41 return (obj == null) ? 0 : obj.swigCPtr; 42 } 43 44 @Override 45 protected void finalize() throws Throwable { 46 if (!destroyed) 47 destroy(); 48 super.finalize(); 49 } 50 51 @Override protected synchronized void delete() { 52 if (swigCPtr != 0) { 53 if (swigCMemOwn) { 54 swigCMemOwn = false; 55 DynamicsJNI.delete_btSolverConstraint(swigCPtr); 56 } 57 swigCPtr = 0; 58 } 59 super.delete(); 60 } 61 62 public void setRelpos1CrossNormal(btVector3 value) { 63 DynamicsJNI.btSolverConstraint_relpos1CrossNormal_set(swigCPtr, this, btVector3.getCPtr(value), value); 64 } 65 66 public btVector3 getRelpos1CrossNormal() { 67 long cPtr = DynamicsJNI.btSolverConstraint_relpos1CrossNormal_get(swigCPtr, this); 68 return (cPtr == 0) ? null : new btVector3(cPtr, false); 69 } 70 71 public void setContactNormal1(btVector3 value) { 72 DynamicsJNI.btSolverConstraint_contactNormal1_set(swigCPtr, this, btVector3.getCPtr(value), value); 73 } 74 75 public btVector3 getContactNormal1() { 76 long cPtr = DynamicsJNI.btSolverConstraint_contactNormal1_get(swigCPtr, this); 77 return (cPtr == 0) ? null : new btVector3(cPtr, false); 78 } 79 80 public void setRelpos2CrossNormal(btVector3 value) { 81 DynamicsJNI.btSolverConstraint_relpos2CrossNormal_set(swigCPtr, this, btVector3.getCPtr(value), value); 82 } 83 84 public btVector3 getRelpos2CrossNormal() { 85 long cPtr = DynamicsJNI.btSolverConstraint_relpos2CrossNormal_get(swigCPtr, this); 86 return (cPtr == 0) ? null : new btVector3(cPtr, false); 87 } 88 89 public void setContactNormal2(btVector3 value) { 90 DynamicsJNI.btSolverConstraint_contactNormal2_set(swigCPtr, this, btVector3.getCPtr(value), value); 91 } 92 93 public btVector3 getContactNormal2() { 94 long cPtr = DynamicsJNI.btSolverConstraint_contactNormal2_get(swigCPtr, this); 95 return (cPtr == 0) ? null : new btVector3(cPtr, false); 96 } 97 98 public void setAngularComponentA(btVector3 value) { 99 DynamicsJNI.btSolverConstraint_angularComponentA_set(swigCPtr, this, btVector3.getCPtr(value), value); 100 } 101 102 public btVector3 getAngularComponentA() { 103 long cPtr = DynamicsJNI.btSolverConstraint_angularComponentA_get(swigCPtr, this); 104 return (cPtr == 0) ? null : new btVector3(cPtr, false); 105 } 106 107 public void setAngularComponentB(btVector3 value) { 108 DynamicsJNI.btSolverConstraint_angularComponentB_set(swigCPtr, this, btVector3.getCPtr(value), value); 109 } 110 111 public btVector3 getAngularComponentB() { 112 long cPtr = DynamicsJNI.btSolverConstraint_angularComponentB_get(swigCPtr, this); 113 return (cPtr == 0) ? null : new btVector3(cPtr, false); 114 } 115 116 public void setAppliedPushImpulse(float value) { 117 DynamicsJNI.btSolverConstraint_appliedPushImpulse_set(swigCPtr, this, value); 118 } 119 120 public float getAppliedPushImpulse() { 121 return DynamicsJNI.btSolverConstraint_appliedPushImpulse_get(swigCPtr, this); 122 } 123 124 public void setAppliedImpulse(float value) { 125 DynamicsJNI.btSolverConstraint_appliedImpulse_set(swigCPtr, this, value); 126 } 127 128 public float getAppliedImpulse() { 129 return DynamicsJNI.btSolverConstraint_appliedImpulse_get(swigCPtr, this); 130 } 131 132 public void setFriction(float value) { 133 DynamicsJNI.btSolverConstraint_friction_set(swigCPtr, this, value); 134 } 135 136 public float getFriction() { 137 return DynamicsJNI.btSolverConstraint_friction_get(swigCPtr, this); 138 } 139 140 public void setJacDiagABInv(float value) { 141 DynamicsJNI.btSolverConstraint_jacDiagABInv_set(swigCPtr, this, value); 142 } 143 144 public float getJacDiagABInv() { 145 return DynamicsJNI.btSolverConstraint_jacDiagABInv_get(swigCPtr, this); 146 } 147 148 public void setRhs(float value) { 149 DynamicsJNI.btSolverConstraint_rhs_set(swigCPtr, this, value); 150 } 151 152 public float getRhs() { 153 return DynamicsJNI.btSolverConstraint_rhs_get(swigCPtr, this); 154 } 155 156 public void setCfm(float value) { 157 DynamicsJNI.btSolverConstraint_cfm_set(swigCPtr, this, value); 158 } 159 160 public float getCfm() { 161 return DynamicsJNI.btSolverConstraint_cfm_get(swigCPtr, this); 162 } 163 164 public void setLowerLimit(float value) { 165 DynamicsJNI.btSolverConstraint_lowerLimit_set(swigCPtr, this, value); 166 } 167 168 public float getLowerLimit() { 169 return DynamicsJNI.btSolverConstraint_lowerLimit_get(swigCPtr, this); 170 } 171 172 public void setUpperLimit(float value) { 173 DynamicsJNI.btSolverConstraint_upperLimit_set(swigCPtr, this, value); 174 } 175 176 public float getUpperLimit() { 177 return DynamicsJNI.btSolverConstraint_upperLimit_get(swigCPtr, this); 178 } 179 180 public void setRhsPenetration(float value) { 181 DynamicsJNI.btSolverConstraint_rhsPenetration_set(swigCPtr, this, value); 182 } 183 184 public float getRhsPenetration() { 185 return DynamicsJNI.btSolverConstraint_rhsPenetration_get(swigCPtr, this); 186 } 187 188 public void setOriginalContactPoint(long value) { 189 DynamicsJNI.btSolverConstraint_originalContactPoint_set(swigCPtr, this, value); 190 } 191 192 public long getOriginalContactPoint() { 193 return DynamicsJNI.btSolverConstraint_originalContactPoint_get(swigCPtr, this); 194 } 195 196 public void setUnusedPadding4(float value) { 197 DynamicsJNI.btSolverConstraint_unusedPadding4_set(swigCPtr, this, value); 198 } 199 200 public float getUnusedPadding4() { 201 return DynamicsJNI.btSolverConstraint_unusedPadding4_get(swigCPtr, this); 202 } 203 204 public void setNumRowsForNonContactConstraint(int value) { 205 DynamicsJNI.btSolverConstraint_numRowsForNonContactConstraint_set(swigCPtr, this, value); 206 } 207 208 public int getNumRowsForNonContactConstraint() { 209 return DynamicsJNI.btSolverConstraint_numRowsForNonContactConstraint_get(swigCPtr, this); 210 } 211 212 public void setOverrideNumSolverIterations(int value) { 213 DynamicsJNI.btSolverConstraint_overrideNumSolverIterations_set(swigCPtr, this, value); 214 } 215 216 public int getOverrideNumSolverIterations() { 217 return DynamicsJNI.btSolverConstraint_overrideNumSolverIterations_get(swigCPtr, this); 218 } 219 220 public void setFrictionIndex(int value) { 221 DynamicsJNI.btSolverConstraint_frictionIndex_set(swigCPtr, this, value); 222 } 223 224 public int getFrictionIndex() { 225 return DynamicsJNI.btSolverConstraint_frictionIndex_get(swigCPtr, this); 226 } 227 228 public void setSolverBodyIdA(int value) { 229 DynamicsJNI.btSolverConstraint_solverBodyIdA_set(swigCPtr, this, value); 230 } 231 232 public int getSolverBodyIdA() { 233 return DynamicsJNI.btSolverConstraint_solverBodyIdA_get(swigCPtr, this); 234 } 235 236 public void setSolverBodyIdB(int value) { 237 DynamicsJNI.btSolverConstraint_solverBodyIdB_set(swigCPtr, this, value); 238 } 239 240 public int getSolverBodyIdB() { 241 return DynamicsJNI.btSolverConstraint_solverBodyIdB_get(swigCPtr, this); 242 } 243 244 public btSolverConstraint() { 245 this(DynamicsJNI.new_btSolverConstraint(), true); 246 } 247 248 public final static class btSolverConstraintType { 249 public final static int BT_SOLVER_CONTACT_1D = 0; 250 public final static int BT_SOLVER_FRICTION_1D = BT_SOLVER_CONTACT_1D + 1; 251 } 252 253 } 254