OSDN Git Service

ERL YER SERC CERN HERS BERN RERFERCKTERERD!
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / btHingeConstraint.java
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 2.0.5
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;
10
11 import com.badlogic.gdx.math.Quaternion;
12 import com.badlogic.gdx.math.Vector3;
13
14 public class btHingeConstraint extends btTypedConstraint {
15         private long swigCPtr;
16
17         protected btHingeConstraint (long cPtr, boolean cMemoryOwn) {
18                 super(gdxBulletJNI.btHingeConstraint_SWIGUpcast(cPtr), cMemoryOwn);
19                 swigCPtr = cPtr;
20         }
21
22         public static long getCPtr (btHingeConstraint obj) {
23                 return (obj == null) ? 0 : obj.swigCPtr;
24         }
25
26         protected void finalize () {
27                 delete();
28         }
29
30         public synchronized void delete () {
31                 if (swigCPtr != 0) {
32                         if (swigCMemOwn) {
33                                 swigCMemOwn = false;
34                                 gdxBulletJNI.delete_btHingeConstraint(swigCPtr);
35                         }
36                         swigCPtr = 0;
37                 }
38                 super.delete();
39         }
40
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);
45         }
46
47         public btHingeConstraint (btRigidBody rbA, btRigidBody rbB, Vector3 pivotInA, Vector3 pivotInB, Vector3 axisInA,
48                 Vector3 axisInB) {
49                 this(gdxBulletJNI.new_btHingeConstraint__SWIG_1(btRigidBody.getCPtr(rbA), rbA, btRigidBody.getCPtr(rbB), rbB, pivotInA,
50                         pivotInB, axisInA, axisInB), true);
51         }
52
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);
55         }
56
57         public btHingeConstraint (btRigidBody rbA, Vector3 pivotInA, Vector3 axisInA) {
58                 this(gdxBulletJNI.new_btHingeConstraint__SWIG_3(btRigidBody.getCPtr(rbA), rbA, pivotInA, axisInA), true);
59         }
60
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);
65         }
66
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);
70         }
71
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);
75         }
76
77         public btHingeConstraint (btRigidBody rbA, btTransform rbAFrame) {
78                 this(gdxBulletJNI.new_btHingeConstraint__SWIG_7(btRigidBody.getCPtr(rbA), rbA, btTransform.getCPtr(rbAFrame), rbAFrame),
79                         true);
80         }
81
82         public void getInfo1NonVirtual (SWIGTYPE_p_btTypedConstraint__btConstraintInfo1 info) {
83                 gdxBulletJNI.btHingeConstraint_getInfo1NonVirtual(swigCPtr, this,
84                         SWIGTYPE_p_btTypedConstraint__btConstraintInfo1.getCPtr(info));
85         }
86
87         public void getInfo2NonVirtual (btConstraintInfo2 info, btTransform transA, btTransform transB, Vector3 angVelA,
88                 Vector3 angVelB) {
89                 gdxBulletJNI.btHingeConstraint_getInfo2NonVirtual(swigCPtr, this, btConstraintInfo2.getCPtr(info), info,
90                         btTransform.getCPtr(transA), transA, btTransform.getCPtr(transB), transB, angVelA, angVelB);
91         }
92
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);
96         }
97
98         public void getInfo2InternalUsingFrameOffset (btConstraintInfo2 info, btTransform transA, btTransform transB, Vector3 angVelA,
99                 Vector3 angVelB) {
100                 gdxBulletJNI.btHingeConstraint_getInfo2InternalUsingFrameOffset(swigCPtr, this, btConstraintInfo2.getCPtr(info), info,
101                         btTransform.getCPtr(transA), transA, btTransform.getCPtr(transB), transB, angVelA, angVelB);
102         }
103
104         public void updateRHS (float timeStep) {
105                 gdxBulletJNI.btHingeConstraint_updateRHS(swigCPtr, this, timeStep);
106         }
107
108         public btRigidBody getRigidBodyA () {
109                 return new btRigidBody(gdxBulletJNI.btHingeConstraint_getRigidBodyA__SWIG_0(swigCPtr, this), false);
110         }
111
112         public btRigidBody getRigidBodyB () {
113                 return new btRigidBody(gdxBulletJNI.btHingeConstraint_getRigidBodyB__SWIG_0(swigCPtr, this), false);
114         }
115
116         public btTransform getFrameOffsetA () {
117                 return new btTransform(gdxBulletJNI.btHingeConstraint_getFrameOffsetA(swigCPtr, this), false);
118         }
119
120         public btTransform getFrameOffsetB () {
121                 return new btTransform(gdxBulletJNI.btHingeConstraint_getFrameOffsetB(swigCPtr, this), false);
122         }
123
124         public void setFrames (btTransform frameA, btTransform frameB) {
125                 gdxBulletJNI.btHingeConstraint_setFrames(swigCPtr, this, btTransform.getCPtr(frameA), frameA, btTransform.getCPtr(frameB),
126                         frameB);
127         }
128
129         public void setAngularOnly (boolean angularOnly) {
130                 gdxBulletJNI.btHingeConstraint_setAngularOnly(swigCPtr, this, angularOnly);
131         }
132
133         public void enableAngularMotor (boolean enableMotor, float targetVelocity, float maxMotorImpulse) {
134                 gdxBulletJNI.btHingeConstraint_enableAngularMotor(swigCPtr, this, enableMotor, targetVelocity, maxMotorImpulse);
135         }
136
137         public void enableMotor (boolean enableMotor) {
138                 gdxBulletJNI.btHingeConstraint_enableMotor(swigCPtr, this, enableMotor);
139         }
140
141         public void setMaxMotorImpulse (float maxMotorImpulse) {
142                 gdxBulletJNI.btHingeConstraint_setMaxMotorImpulse(swigCPtr, this, maxMotorImpulse);
143         }
144
145         public void setMotorTarget (Quaternion qAinB, float dt) {
146                 gdxBulletJNI.btHingeConstraint_setMotorTarget__SWIG_0(swigCPtr, this, qAinB, dt);
147         }
148
149         public void setMotorTarget (float targetAngle, float dt) {
150                 gdxBulletJNI.btHingeConstraint_setMotorTarget__SWIG_1(swigCPtr, this, targetAngle, dt);
151         }
152
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);
155         }
156
157         public void setLimit (float low, float high, float _softness, float _biasFactor) {
158                 gdxBulletJNI.btHingeConstraint_setLimit__SWIG_1(swigCPtr, this, low, high, _softness, _biasFactor);
159         }
160
161         public void setLimit (float low, float high, float _softness) {
162                 gdxBulletJNI.btHingeConstraint_setLimit__SWIG_2(swigCPtr, this, low, high, _softness);
163         }
164
165         public void setLimit (float low, float high) {
166                 gdxBulletJNI.btHingeConstraint_setLimit__SWIG_3(swigCPtr, this, low, high);
167         }
168
169         public void setAxis (Vector3 axisInA) {
170                 gdxBulletJNI.btHingeConstraint_setAxis(swigCPtr, this, axisInA);
171         }
172
173         public float getLowerLimit () {
174                 return gdxBulletJNI.btHingeConstraint_getLowerLimit(swigCPtr, this);
175         }
176
177         public float getUpperLimit () {
178                 return gdxBulletJNI.btHingeConstraint_getUpperLimit(swigCPtr, this);
179         }
180
181         public float getHingeAngle () {
182                 return gdxBulletJNI.btHingeConstraint_getHingeAngle__SWIG_0(swigCPtr, this);
183         }
184
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);
188         }
189
190         public void testLimit (btTransform transA, btTransform transB) {
191                 gdxBulletJNI.btHingeConstraint_testLimit(swigCPtr, this, btTransform.getCPtr(transA), transA, btTransform.getCPtr(transB),
192                         transB);
193         }
194
195         public btTransform getAFrame () {
196                 return new btTransform(gdxBulletJNI.btHingeConstraint_getAFrame__SWIG_0(swigCPtr, this), false);
197         }
198
199         public btTransform getBFrame () {
200                 return new btTransform(gdxBulletJNI.btHingeConstraint_getBFrame__SWIG_0(swigCPtr, this), false);
201         }
202
203         public int getSolveLimit () {
204                 return gdxBulletJNI.btHingeConstraint_getSolveLimit(swigCPtr, this);
205         }
206
207         public float getLimitSign () {
208                 return gdxBulletJNI.btHingeConstraint_getLimitSign(swigCPtr, this);
209         }
210
211         public boolean getAngularOnly () {
212                 return gdxBulletJNI.btHingeConstraint_getAngularOnly(swigCPtr, this);
213         }
214
215         public boolean getEnableAngularMotor () {
216                 return gdxBulletJNI.btHingeConstraint_getEnableAngularMotor(swigCPtr, this);
217         }
218
219         public float getMotorTargetVelosity () {
220                 return gdxBulletJNI.btHingeConstraint_getMotorTargetVelosity(swigCPtr, this);
221         }
222
223         public float getMaxMotorImpulse () {
224                 return gdxBulletJNI.btHingeConstraint_getMaxMotorImpulse(swigCPtr, this);
225         }
226
227         public boolean getUseFrameOffset () {
228                 return gdxBulletJNI.btHingeConstraint_getUseFrameOffset(swigCPtr, this);
229         }
230
231         public void setUseFrameOffset (boolean frameOffsetOnOff) {
232                 gdxBulletJNI.btHingeConstraint_setUseFrameOffset(swigCPtr, this, frameOffsetOnOff);
233         }
234
235         public void setParam (int num, float value, int axis) {
236                 gdxBulletJNI.btHingeConstraint_setParam__SWIG_0(swigCPtr, this, num, value, axis);
237         }
238
239         public void setParam (int num, float value) {
240                 gdxBulletJNI.btHingeConstraint_setParam__SWIG_1(swigCPtr, this, num, value);
241         }
242
243         public float getParam (int num, int axis) {
244                 return gdxBulletJNI.btHingeConstraint_getParam__SWIG_0(swigCPtr, this, num, axis);
245         }
246
247         public float getParam (int num) {
248                 return gdxBulletJNI.btHingeConstraint_getParam__SWIG_1(swigCPtr, this, num);
249         }
250
251 }