1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
5 * Do not make changes to this file unless you know what you are doing--modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
9 package com.badlogic.gdx.physics.bullet;
11 import com.badlogic.gdx.math.Quaternion;
12 import com.badlogic.gdx.math.Vector3;
14 public class btHingeConstraint extends btTypedConstraint {
15 private long swigCPtr;
17 protected btHingeConstraint (long cPtr, boolean cMemoryOwn) {
18 super(gdxBulletJNI.btHingeConstraint_SWIGUpcast(cPtr), cMemoryOwn);
22 public static long getCPtr (btHingeConstraint obj) {
23 return (obj == null) ? 0 : obj.swigCPtr;
26 protected void finalize () {
30 public synchronized void delete () {
34 gdxBulletJNI.delete_btHingeConstraint(swigCPtr);
41 public btHingeConstraint (btRigidBody rbA, btRigidBody rbB, Vector3 pivotInA, Vector3 pivotInB, Vector3 axisInA,
42 Vector3 axisInB, boolean useReferenceFrameA) {
43 this(gdxBulletJNI.new_btHingeConstraint__SWIG_0(btRigidBody.getCPtr(rbA), rbA, btRigidBody.getCPtr(rbB), rbB, pivotInA,
44 pivotInB, axisInA, axisInB, useReferenceFrameA), true);
47 public btHingeConstraint (btRigidBody rbA, btRigidBody rbB, Vector3 pivotInA, Vector3 pivotInB, Vector3 axisInA,
49 this(gdxBulletJNI.new_btHingeConstraint__SWIG_1(btRigidBody.getCPtr(rbA), rbA, btRigidBody.getCPtr(rbB), rbB, pivotInA,
50 pivotInB, axisInA, axisInB), true);
53 public btHingeConstraint (btRigidBody rbA, Vector3 pivotInA, Vector3 axisInA, boolean useReferenceFrameA) {
54 this(gdxBulletJNI.new_btHingeConstraint__SWIG_2(btRigidBody.getCPtr(rbA), rbA, pivotInA, axisInA, useReferenceFrameA), true);
57 public btHingeConstraint (btRigidBody rbA, Vector3 pivotInA, Vector3 axisInA) {
58 this(gdxBulletJNI.new_btHingeConstraint__SWIG_3(btRigidBody.getCPtr(rbA), rbA, pivotInA, axisInA), true);
61 public btHingeConstraint (btRigidBody rbA, btRigidBody rbB, btTransform rbAFrame, btTransform rbBFrame,
62 boolean useReferenceFrameA) {
63 this(gdxBulletJNI.new_btHingeConstraint__SWIG_4(btRigidBody.getCPtr(rbA), rbA, btRigidBody.getCPtr(rbB), rbB,
64 btTransform.getCPtr(rbAFrame), rbAFrame, btTransform.getCPtr(rbBFrame), rbBFrame, useReferenceFrameA), true);
67 public btHingeConstraint (btRigidBody rbA, btRigidBody rbB, btTransform rbAFrame, btTransform rbBFrame) {
68 this(gdxBulletJNI.new_btHingeConstraint__SWIG_5(btRigidBody.getCPtr(rbA), rbA, btRigidBody.getCPtr(rbB), rbB,
69 btTransform.getCPtr(rbAFrame), rbAFrame, btTransform.getCPtr(rbBFrame), rbBFrame), true);
72 public btHingeConstraint (btRigidBody rbA, btTransform rbAFrame, boolean useReferenceFrameA) {
73 this(gdxBulletJNI.new_btHingeConstraint__SWIG_6(btRigidBody.getCPtr(rbA), rbA, btTransform.getCPtr(rbAFrame), rbAFrame,
74 useReferenceFrameA), true);
77 public btHingeConstraint (btRigidBody rbA, btTransform rbAFrame) {
78 this(gdxBulletJNI.new_btHingeConstraint__SWIG_7(btRigidBody.getCPtr(rbA), rbA, btTransform.getCPtr(rbAFrame), rbAFrame),
82 public void getInfo1NonVirtual (SWIGTYPE_p_btTypedConstraint__btConstraintInfo1 info) {
83 gdxBulletJNI.btHingeConstraint_getInfo1NonVirtual(swigCPtr, this,
84 SWIGTYPE_p_btTypedConstraint__btConstraintInfo1.getCPtr(info));
87 public void getInfo2NonVirtual (btConstraintInfo2 info, btTransform transA, btTransform transB, Vector3 angVelA,
89 gdxBulletJNI.btHingeConstraint_getInfo2NonVirtual(swigCPtr, this, btConstraintInfo2.getCPtr(info), info,
90 btTransform.getCPtr(transA), transA, btTransform.getCPtr(transB), transB, angVelA, angVelB);
93 public void getInfo2Internal (btConstraintInfo2 info, btTransform transA, btTransform transB, Vector3 angVelA, Vector3 angVelB) {
94 gdxBulletJNI.btHingeConstraint_getInfo2Internal(swigCPtr, this, btConstraintInfo2.getCPtr(info), info,
95 btTransform.getCPtr(transA), transA, btTransform.getCPtr(transB), transB, angVelA, angVelB);
98 public void getInfo2InternalUsingFrameOffset (btConstraintInfo2 info, btTransform transA, btTransform transB, Vector3 angVelA,
100 gdxBulletJNI.btHingeConstraint_getInfo2InternalUsingFrameOffset(swigCPtr, this, btConstraintInfo2.getCPtr(info), info,
101 btTransform.getCPtr(transA), transA, btTransform.getCPtr(transB), transB, angVelA, angVelB);
104 public void updateRHS (float timeStep) {
105 gdxBulletJNI.btHingeConstraint_updateRHS(swigCPtr, this, timeStep);
108 public btRigidBody getRigidBodyA () {
109 return new btRigidBody(gdxBulletJNI.btHingeConstraint_getRigidBodyA__SWIG_0(swigCPtr, this), false);
112 public btRigidBody getRigidBodyB () {
113 return new btRigidBody(gdxBulletJNI.btHingeConstraint_getRigidBodyB__SWIG_0(swigCPtr, this), false);
116 public btTransform getFrameOffsetA () {
117 return new btTransform(gdxBulletJNI.btHingeConstraint_getFrameOffsetA(swigCPtr, this), false);
120 public btTransform getFrameOffsetB () {
121 return new btTransform(gdxBulletJNI.btHingeConstraint_getFrameOffsetB(swigCPtr, this), false);
124 public void setFrames (btTransform frameA, btTransform frameB) {
125 gdxBulletJNI.btHingeConstraint_setFrames(swigCPtr, this, btTransform.getCPtr(frameA), frameA, btTransform.getCPtr(frameB),
129 public void setAngularOnly (boolean angularOnly) {
130 gdxBulletJNI.btHingeConstraint_setAngularOnly(swigCPtr, this, angularOnly);
133 public void enableAngularMotor (boolean enableMotor, float targetVelocity, float maxMotorImpulse) {
134 gdxBulletJNI.btHingeConstraint_enableAngularMotor(swigCPtr, this, enableMotor, targetVelocity, maxMotorImpulse);
137 public void enableMotor (boolean enableMotor) {
138 gdxBulletJNI.btHingeConstraint_enableMotor(swigCPtr, this, enableMotor);
141 public void setMaxMotorImpulse (float maxMotorImpulse) {
142 gdxBulletJNI.btHingeConstraint_setMaxMotorImpulse(swigCPtr, this, maxMotorImpulse);
145 public void setMotorTarget (Quaternion qAinB, float dt) {
146 gdxBulletJNI.btHingeConstraint_setMotorTarget__SWIG_0(swigCPtr, this, qAinB, dt);
149 public void setMotorTarget (float targetAngle, float dt) {
150 gdxBulletJNI.btHingeConstraint_setMotorTarget__SWIG_1(swigCPtr, this, targetAngle, dt);
153 public void setLimit (float low, float high, float _softness, float _biasFactor, float _relaxationFactor) {
154 gdxBulletJNI.btHingeConstraint_setLimit__SWIG_0(swigCPtr, this, low, high, _softness, _biasFactor, _relaxationFactor);
157 public void setLimit (float low, float high, float _softness, float _biasFactor) {
158 gdxBulletJNI.btHingeConstraint_setLimit__SWIG_1(swigCPtr, this, low, high, _softness, _biasFactor);
161 public void setLimit (float low, float high, float _softness) {
162 gdxBulletJNI.btHingeConstraint_setLimit__SWIG_2(swigCPtr, this, low, high, _softness);
165 public void setLimit (float low, float high) {
166 gdxBulletJNI.btHingeConstraint_setLimit__SWIG_3(swigCPtr, this, low, high);
169 public void setAxis (Vector3 axisInA) {
170 gdxBulletJNI.btHingeConstraint_setAxis(swigCPtr, this, axisInA);
173 public float getLowerLimit () {
174 return gdxBulletJNI.btHingeConstraint_getLowerLimit(swigCPtr, this);
177 public float getUpperLimit () {
178 return gdxBulletJNI.btHingeConstraint_getUpperLimit(swigCPtr, this);
181 public float getHingeAngle () {
182 return gdxBulletJNI.btHingeConstraint_getHingeAngle__SWIG_0(swigCPtr, this);
185 public float getHingeAngle (btTransform transA, btTransform transB) {
186 return gdxBulletJNI.btHingeConstraint_getHingeAngle__SWIG_1(swigCPtr, this, btTransform.getCPtr(transA), transA,
187 btTransform.getCPtr(transB), transB);
190 public void testLimit (btTransform transA, btTransform transB) {
191 gdxBulletJNI.btHingeConstraint_testLimit(swigCPtr, this, btTransform.getCPtr(transA), transA, btTransform.getCPtr(transB),
195 public btTransform getAFrame () {
196 return new btTransform(gdxBulletJNI.btHingeConstraint_getAFrame__SWIG_0(swigCPtr, this), false);
199 public btTransform getBFrame () {
200 return new btTransform(gdxBulletJNI.btHingeConstraint_getBFrame__SWIG_0(swigCPtr, this), false);
203 public int getSolveLimit () {
204 return gdxBulletJNI.btHingeConstraint_getSolveLimit(swigCPtr, this);
207 public float getLimitSign () {
208 return gdxBulletJNI.btHingeConstraint_getLimitSign(swigCPtr, this);
211 public boolean getAngularOnly () {
212 return gdxBulletJNI.btHingeConstraint_getAngularOnly(swigCPtr, this);
215 public boolean getEnableAngularMotor () {
216 return gdxBulletJNI.btHingeConstraint_getEnableAngularMotor(swigCPtr, this);
219 public float getMotorTargetVelosity () {
220 return gdxBulletJNI.btHingeConstraint_getMotorTargetVelosity(swigCPtr, this);
223 public float getMaxMotorImpulse () {
224 return gdxBulletJNI.btHingeConstraint_getMaxMotorImpulse(swigCPtr, this);
227 public boolean getUseFrameOffset () {
228 return gdxBulletJNI.btHingeConstraint_getUseFrameOffset(swigCPtr, this);
231 public void setUseFrameOffset (boolean frameOffsetOnOff) {
232 gdxBulletJNI.btHingeConstraint_setUseFrameOffset(swigCPtr, this, frameOffsetOnOff);
235 public void setParam (int num, float value, int axis) {
236 gdxBulletJNI.btHingeConstraint_setParam__SWIG_0(swigCPtr, this, num, value, axis);
239 public void setParam (int num, float value) {
240 gdxBulletJNI.btHingeConstraint_setParam__SWIG_1(swigCPtr, this, num, value);
243 public float getParam (int num, int axis) {
244 return gdxBulletJNI.btHingeConstraint_getParam__SWIG_0(swigCPtr, this, num, axis);
247 public float getParam (int num) {
248 return gdxBulletJNI.btHingeConstraint_getParam__SWIG_1(swigCPtr, this, num);