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 btTranslationalLimitMotor extends BulletBase {
\r
17 private long swigCPtr;
\r
19 protected btTranslationalLimitMotor(final String className, long cPtr, boolean cMemoryOwn) {
\r
20 super(className, cPtr, cMemoryOwn);
\r
24 protected btTranslationalLimitMotor(long cPtr, boolean cMemoryOwn) {
\r
25 this("btTranslationalLimitMotor", cPtr, cMemoryOwn);
\r
29 public static long getCPtr(btTranslationalLimitMotor 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_btTranslationalLimitMotor(swigCPtr);
\r
51 public void setLowerLimit(btVector3 value) {
\r
52 gdxBulletJNI.btTranslationalLimitMotor_lowerLimit_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
55 public btVector3 getLowerLimit() {
\r
56 long cPtr = gdxBulletJNI.btTranslationalLimitMotor_lowerLimit_get(swigCPtr, this);
\r
57 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
60 public void setUpperLimit(btVector3 value) {
\r
61 gdxBulletJNI.btTranslationalLimitMotor_upperLimit_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
64 public btVector3 getUpperLimit() {
\r
65 long cPtr = gdxBulletJNI.btTranslationalLimitMotor_upperLimit_get(swigCPtr, this);
\r
66 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
69 public void setAccumulatedImpulse(btVector3 value) {
\r
70 gdxBulletJNI.btTranslationalLimitMotor_accumulatedImpulse_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
73 public btVector3 getAccumulatedImpulse() {
\r
74 long cPtr = gdxBulletJNI.btTranslationalLimitMotor_accumulatedImpulse_get(swigCPtr, this);
\r
75 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
78 public void setLimitSoftness(float value) {
\r
79 gdxBulletJNI.btTranslationalLimitMotor_limitSoftness_set(swigCPtr, this, value);
\r
82 public float getLimitSoftness() {
\r
83 return gdxBulletJNI.btTranslationalLimitMotor_limitSoftness_get(swigCPtr, this);
\r
86 public void setDamping(float value) {
\r
87 gdxBulletJNI.btTranslationalLimitMotor_damping_set(swigCPtr, this, value);
\r
90 public float getDamping() {
\r
91 return gdxBulletJNI.btTranslationalLimitMotor_damping_get(swigCPtr, this);
\r
94 public void setRestitution(float value) {
\r
95 gdxBulletJNI.btTranslationalLimitMotor_restitution_set(swigCPtr, this, value);
\r
98 public float getRestitution() {
\r
99 return gdxBulletJNI.btTranslationalLimitMotor_restitution_get(swigCPtr, this);
\r
102 public void setNormalCFM(btVector3 value) {
\r
103 gdxBulletJNI.btTranslationalLimitMotor_normalCFM_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
106 public btVector3 getNormalCFM() {
\r
107 long cPtr = gdxBulletJNI.btTranslationalLimitMotor_normalCFM_get(swigCPtr, this);
\r
108 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
111 public void setStopERP(btVector3 value) {
\r
112 gdxBulletJNI.btTranslationalLimitMotor_stopERP_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
115 public btVector3 getStopERP() {
\r
116 long cPtr = gdxBulletJNI.btTranslationalLimitMotor_stopERP_get(swigCPtr, this);
\r
117 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
120 public void setStopCFM(btVector3 value) {
\r
121 gdxBulletJNI.btTranslationalLimitMotor_stopCFM_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
124 public btVector3 getStopCFM() {
\r
125 long cPtr = gdxBulletJNI.btTranslationalLimitMotor_stopCFM_get(swigCPtr, this);
\r
126 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
129 public void setEnableMotor(boolean[] value) {
\r
130 gdxBulletJNI.btTranslationalLimitMotor_enableMotor_set(swigCPtr, this, value);
\r
133 public boolean[] getEnableMotor() {
\r
134 return gdxBulletJNI.btTranslationalLimitMotor_enableMotor_get(swigCPtr, this);
\r
137 public void setTargetVelocity(btVector3 value) {
\r
138 gdxBulletJNI.btTranslationalLimitMotor_targetVelocity_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
141 public btVector3 getTargetVelocity() {
\r
142 long cPtr = gdxBulletJNI.btTranslationalLimitMotor_targetVelocity_get(swigCPtr, this);
\r
143 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
146 public void setMaxMotorForce(btVector3 value) {
\r
147 gdxBulletJNI.btTranslationalLimitMotor_maxMotorForce_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
150 public btVector3 getMaxMotorForce() {
\r
151 long cPtr = gdxBulletJNI.btTranslationalLimitMotor_maxMotorForce_get(swigCPtr, this);
\r
152 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
155 public void setCurrentLimitError(btVector3 value) {
\r
156 gdxBulletJNI.btTranslationalLimitMotor_currentLimitError_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
159 public btVector3 getCurrentLimitError() {
\r
160 long cPtr = gdxBulletJNI.btTranslationalLimitMotor_currentLimitError_get(swigCPtr, this);
\r
161 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
164 public void setCurrentLinearDiff(btVector3 value) {
\r
165 gdxBulletJNI.btTranslationalLimitMotor_currentLinearDiff_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
168 public btVector3 getCurrentLinearDiff() {
\r
169 long cPtr = gdxBulletJNI.btTranslationalLimitMotor_currentLinearDiff_get(swigCPtr, this);
\r
170 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
173 public void setCurrentLimit(int[] value) {
\r
174 gdxBulletJNI.btTranslationalLimitMotor_currentLimit_set(swigCPtr, this, value);
\r
177 public int[] getCurrentLimit() {
\r
178 return gdxBulletJNI.btTranslationalLimitMotor_currentLimit_get(swigCPtr, this);
\r
181 public btTranslationalLimitMotor() {
\r
182 this(gdxBulletJNI.new_btTranslationalLimitMotor__SWIG_0(), true);
\r
185 public btTranslationalLimitMotor(btTranslationalLimitMotor other) {
\r
186 this(gdxBulletJNI.new_btTranslationalLimitMotor__SWIG_1(btTranslationalLimitMotor.getCPtr(other), other), true);
\r
189 public boolean isLimited(int limitIndex) {
\r
190 return gdxBulletJNI.btTranslationalLimitMotor_isLimited(swigCPtr, this, limitIndex);
\r
193 public boolean needApplyForce(int limitIndex) {
\r
194 return gdxBulletJNI.btTranslationalLimitMotor_needApplyForce(swigCPtr, this, limitIndex);
\r
197 public int testLimitValue(int limitIndex, float test_value) {
\r
198 return gdxBulletJNI.btTranslationalLimitMotor_testLimitValue(swigCPtr, this, limitIndex, test_value);
\r
201 public float solveLinearAxis(float timeStep, float jacDiagABInv, btRigidBody body1, Vector3 pointInA, btRigidBody body2, Vector3 pointInB, int limit_index, Vector3 axis_normal_on_a, Vector3 anchorPos) {
\r
202 return gdxBulletJNI.btTranslationalLimitMotor_solveLinearAxis(swigCPtr, this, timeStep, jacDiagABInv, btRigidBody.getCPtr(body1), body1, pointInA, btRigidBody.getCPtr(body2), body2, pointInB, limit_index, axis_normal_on_a, anchorPos);
\r