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 btHingeConstraint extends btTypedConstraint {
\r
17 private long swigCPtr;
\r
19 protected btHingeConstraint(final String className, long cPtr, boolean cMemoryOwn) {
\r
20 super(className, gdxBulletJNI.btHingeConstraint_SWIGUpcast(cPtr), cMemoryOwn);
\r
24 protected btHingeConstraint(long cPtr, boolean cMemoryOwn) {
\r
25 this("btHingeConstraint", cPtr, cMemoryOwn);
\r
29 public static long getCPtr(btHingeConstraint 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_btHingeConstraint(swigCPtr);
\r
51 public btHingeConstraint(btRigidBody rbA, btRigidBody rbB, Vector3 pivotInA, Vector3 pivotInB, Vector3 axisInA, Vector3 axisInB, boolean useReferenceFrameA) {
\r
52 this(gdxBulletJNI.new_btHingeConstraint__SWIG_0(btRigidBody.getCPtr(rbA), rbA, btRigidBody.getCPtr(rbB), rbB, pivotInA, pivotInB, axisInA, axisInB, useReferenceFrameA), true);
\r
55 public btHingeConstraint(btRigidBody rbA, btRigidBody rbB, Vector3 pivotInA, Vector3 pivotInB, Vector3 axisInA, Vector3 axisInB) {
\r
56 this(gdxBulletJNI.new_btHingeConstraint__SWIG_1(btRigidBody.getCPtr(rbA), rbA, btRigidBody.getCPtr(rbB), rbB, pivotInA, pivotInB, axisInA, axisInB), true);
\r
59 public btHingeConstraint(btRigidBody rbA, Vector3 pivotInA, Vector3 axisInA, boolean useReferenceFrameA) {
\r
60 this(gdxBulletJNI.new_btHingeConstraint__SWIG_2(btRigidBody.getCPtr(rbA), rbA, pivotInA, axisInA, useReferenceFrameA), true);
\r
63 public btHingeConstraint(btRigidBody rbA, Vector3 pivotInA, Vector3 axisInA) {
\r
64 this(gdxBulletJNI.new_btHingeConstraint__SWIG_3(btRigidBody.getCPtr(rbA), rbA, pivotInA, axisInA), true);
\r
67 public btHingeConstraint(btRigidBody rbA, btRigidBody rbB, Matrix4 rbAFrame, Matrix4 rbBFrame, boolean useReferenceFrameA) {
\r
68 this(gdxBulletJNI.new_btHingeConstraint__SWIG_4(btRigidBody.getCPtr(rbA), rbA, btRigidBody.getCPtr(rbB), rbB, rbAFrame, rbBFrame, useReferenceFrameA), true);
\r
71 public btHingeConstraint(btRigidBody rbA, btRigidBody rbB, Matrix4 rbAFrame, Matrix4 rbBFrame) {
\r
72 this(gdxBulletJNI.new_btHingeConstraint__SWIG_5(btRigidBody.getCPtr(rbA), rbA, btRigidBody.getCPtr(rbB), rbB, rbAFrame, rbBFrame), true);
\r
75 public btHingeConstraint(btRigidBody rbA, Matrix4 rbAFrame, boolean useReferenceFrameA) {
\r
76 this(gdxBulletJNI.new_btHingeConstraint__SWIG_6(btRigidBody.getCPtr(rbA), rbA, rbAFrame, useReferenceFrameA), true);
\r
79 public btHingeConstraint(btRigidBody rbA, Matrix4 rbAFrame) {
\r
80 this(gdxBulletJNI.new_btHingeConstraint__SWIG_7(btRigidBody.getCPtr(rbA), rbA, rbAFrame), true);
\r
83 public void getInfo1NonVirtual(SWIGTYPE_p_btTypedConstraint__btConstraintInfo1 info) {
\r
84 gdxBulletJNI.btHingeConstraint_getInfo1NonVirtual(swigCPtr, this, SWIGTYPE_p_btTypedConstraint__btConstraintInfo1.getCPtr(info));
\r
87 public void getInfo2NonVirtual(btConstraintInfo2 info, Matrix4 transA, Matrix4 transB, Vector3 angVelA, Vector3 angVelB) {
\r
88 gdxBulletJNI.btHingeConstraint_getInfo2NonVirtual(swigCPtr, this, btConstraintInfo2.getCPtr(info), info, transA, transB, angVelA, angVelB);
\r
91 public void getInfo2Internal(btConstraintInfo2 info, Matrix4 transA, Matrix4 transB, Vector3 angVelA, Vector3 angVelB) {
\r
92 gdxBulletJNI.btHingeConstraint_getInfo2Internal(swigCPtr, this, btConstraintInfo2.getCPtr(info), info, transA, transB, angVelA, angVelB);
\r
95 public void getInfo2InternalUsingFrameOffset(btConstraintInfo2 info, Matrix4 transA, Matrix4 transB, Vector3 angVelA, Vector3 angVelB) {
\r
96 gdxBulletJNI.btHingeConstraint_getInfo2InternalUsingFrameOffset(swigCPtr, this, btConstraintInfo2.getCPtr(info), info, transA, transB, angVelA, angVelB);
\r
99 public void updateRHS(float timeStep) {
\r
100 gdxBulletJNI.btHingeConstraint_updateRHS(swigCPtr, this, timeStep);
\r
103 public btRigidBody getRigidBodyA() {
\r
104 return new btRigidBody(gdxBulletJNI.btHingeConstraint_getRigidBodyA__SWIG_0(swigCPtr, this), false);
\r
107 public btRigidBody getRigidBodyB() {
\r
108 return new btRigidBody(gdxBulletJNI.btHingeConstraint_getRigidBodyB__SWIG_0(swigCPtr, this), false);
\r
111 public Matrix4 getFrameOffsetA() {
\r
112 return gdxBulletJNI.btHingeConstraint_getFrameOffsetA(swigCPtr, this);
\r
115 public Matrix4 getFrameOffsetB() {
\r
116 return gdxBulletJNI.btHingeConstraint_getFrameOffsetB(swigCPtr, this);
\r
119 public void setFrames(Matrix4 frameA, Matrix4 frameB) {
\r
120 gdxBulletJNI.btHingeConstraint_setFrames(swigCPtr, this, frameA, frameB);
\r
123 public void setAngularOnly(boolean angularOnly) {
\r
124 gdxBulletJNI.btHingeConstraint_setAngularOnly(swigCPtr, this, angularOnly);
\r
127 public void enableAngularMotor(boolean enableMotor, float targetVelocity, float maxMotorImpulse) {
\r
128 gdxBulletJNI.btHingeConstraint_enableAngularMotor(swigCPtr, this, enableMotor, targetVelocity, maxMotorImpulse);
\r
131 public void enableMotor(boolean enableMotor) {
\r
132 gdxBulletJNI.btHingeConstraint_enableMotor(swigCPtr, this, enableMotor);
\r
135 public void setMaxMotorImpulse(float maxMotorImpulse) {
\r
136 gdxBulletJNI.btHingeConstraint_setMaxMotorImpulse(swigCPtr, this, maxMotorImpulse);
\r
139 public void setMotorTarget(Quaternion qAinB, float dt) {
\r
140 gdxBulletJNI.btHingeConstraint_setMotorTarget__SWIG_0(swigCPtr, this, qAinB, dt);
\r
143 public void setMotorTarget(float targetAngle, float dt) {
\r
144 gdxBulletJNI.btHingeConstraint_setMotorTarget__SWIG_1(swigCPtr, this, targetAngle, dt);
\r
147 public void setLimit(float low, float high, float _softness, float _biasFactor, float _relaxationFactor) {
\r
148 gdxBulletJNI.btHingeConstraint_setLimit__SWIG_0(swigCPtr, this, low, high, _softness, _biasFactor, _relaxationFactor);
\r
151 public void setLimit(float low, float high, float _softness, float _biasFactor) {
\r
152 gdxBulletJNI.btHingeConstraint_setLimit__SWIG_1(swigCPtr, this, low, high, _softness, _biasFactor);
\r
155 public void setLimit(float low, float high, float _softness) {
\r
156 gdxBulletJNI.btHingeConstraint_setLimit__SWIG_2(swigCPtr, this, low, high, _softness);
\r
159 public void setLimit(float low, float high) {
\r
160 gdxBulletJNI.btHingeConstraint_setLimit__SWIG_3(swigCPtr, this, low, high);
\r
163 public void setAxis(Vector3 axisInA) {
\r
164 gdxBulletJNI.btHingeConstraint_setAxis(swigCPtr, this, axisInA);
\r
167 public float getLowerLimit() {
\r
168 return gdxBulletJNI.btHingeConstraint_getLowerLimit(swigCPtr, this);
\r
171 public float getUpperLimit() {
\r
172 return gdxBulletJNI.btHingeConstraint_getUpperLimit(swigCPtr, this);
\r
175 public float getHingeAngle() {
\r
176 return gdxBulletJNI.btHingeConstraint_getHingeAngle__SWIG_0(swigCPtr, this);
\r
179 public float getHingeAngle(Matrix4 transA, Matrix4 transB) {
\r
180 return gdxBulletJNI.btHingeConstraint_getHingeAngle__SWIG_1(swigCPtr, this, transA, transB);
\r
183 public void testLimit(Matrix4 transA, Matrix4 transB) {
\r
184 gdxBulletJNI.btHingeConstraint_testLimit(swigCPtr, this, transA, transB);
\r
187 public Matrix4 getAFrame() {
\r
188 return gdxBulletJNI.btHingeConstraint_getAFrame__SWIG_0(swigCPtr, this);
\r
191 public Matrix4 getBFrame() {
\r
192 return gdxBulletJNI.btHingeConstraint_getBFrame__SWIG_0(swigCPtr, this);
\r
195 public int getSolveLimit() {
\r
196 return gdxBulletJNI.btHingeConstraint_getSolveLimit(swigCPtr, this);
\r
199 public float getLimitSign() {
\r
200 return gdxBulletJNI.btHingeConstraint_getLimitSign(swigCPtr, this);
\r
203 public boolean getAngularOnly() {
\r
204 return gdxBulletJNI.btHingeConstraint_getAngularOnly(swigCPtr, this);
\r
207 public boolean getEnableAngularMotor() {
\r
208 return gdxBulletJNI.btHingeConstraint_getEnableAngularMotor(swigCPtr, this);
\r
211 public float getMotorTargetVelosity() {
\r
212 return gdxBulletJNI.btHingeConstraint_getMotorTargetVelosity(swigCPtr, this);
\r
215 public float getMaxMotorImpulse() {
\r
216 return gdxBulletJNI.btHingeConstraint_getMaxMotorImpulse(swigCPtr, this);
\r
219 public boolean getUseFrameOffset() {
\r
220 return gdxBulletJNI.btHingeConstraint_getUseFrameOffset(swigCPtr, this);
\r
223 public void setUseFrameOffset(boolean frameOffsetOnOff) {
\r
224 gdxBulletJNI.btHingeConstraint_setUseFrameOffset(swigCPtr, this, frameOffsetOnOff);
\r
227 public void setParam(int num, float value, int axis) {
\r
228 gdxBulletJNI.btHingeConstraint_setParam__SWIG_0(swigCPtr, this, num, value, axis);
\r
231 public void setParam(int num, float value) {
\r
232 gdxBulletJNI.btHingeConstraint_setParam__SWIG_1(swigCPtr, this, num, value);
\r
235 public float getParam(int num, int axis) {
\r
236 return gdxBulletJNI.btHingeConstraint_getParam__SWIG_0(swigCPtr, this, num, axis);
\r
239 public float getParam(int num) {
\r
240 return gdxBulletJNI.btHingeConstraint_getParam__SWIG_1(swigCPtr, this, num);
\r