• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 btSliderConstraint extends btTypedConstraint {
20 	private long swigCPtr;
21 
btSliderConstraint(final String className, long cPtr, boolean cMemoryOwn)22 	protected btSliderConstraint(final String className, long cPtr, boolean cMemoryOwn) {
23 		super(className, DynamicsJNI.btSliderConstraint_SWIGUpcast(cPtr), cMemoryOwn);
24 		swigCPtr = cPtr;
25 	}
26 
27 	/** Construct a new btSliderConstraint, normally you should not need this constructor it's intended for low-level usage. */
btSliderConstraint(long cPtr, boolean cMemoryOwn)28 	public btSliderConstraint(long cPtr, boolean cMemoryOwn) {
29 		this("btSliderConstraint", cPtr, cMemoryOwn);
30 		construct();
31 	}
32 
33 	@Override
reset(long cPtr, boolean cMemoryOwn)34 	protected void reset(long cPtr, boolean cMemoryOwn) {
35 		if (!destroyed)
36 			destroy();
37 		super.reset(DynamicsJNI.btSliderConstraint_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn);
38 	}
39 
getCPtr(btSliderConstraint obj)40 	public static long getCPtr(btSliderConstraint obj) {
41 		return (obj == null) ? 0 : obj.swigCPtr;
42 	}
43 
44 	@Override
finalize()45 	protected void finalize() throws Throwable {
46 		if (!destroyed)
47 			destroy();
48 		super.finalize();
49 	}
50 
delete()51   @Override protected synchronized void delete() {
52 		if (swigCPtr != 0) {
53 			if (swigCMemOwn) {
54 				swigCMemOwn = false;
55 				DynamicsJNI.delete_btSliderConstraint(swigCPtr);
56 			}
57 			swigCPtr = 0;
58 		}
59 		super.delete();
60 	}
61 
btSliderConstraint(btRigidBody rbA, btRigidBody rbB, Matrix4 frameInA, Matrix4 frameInB, boolean useLinearReferenceFrameA)62   public btSliderConstraint(btRigidBody rbA, btRigidBody rbB, Matrix4 frameInA, Matrix4 frameInB, boolean useLinearReferenceFrameA) {
63     this(DynamicsJNI.new_btSliderConstraint__SWIG_0(btRigidBody.getCPtr(rbA), rbA, btRigidBody.getCPtr(rbB), rbB, frameInA, frameInB, useLinearReferenceFrameA), true);
64   }
65 
btSliderConstraint(btRigidBody rbB, Matrix4 frameInB, boolean useLinearReferenceFrameA)66   public btSliderConstraint(btRigidBody rbB, Matrix4 frameInB, boolean useLinearReferenceFrameA) {
67     this(DynamicsJNI.new_btSliderConstraint__SWIG_1(btRigidBody.getCPtr(rbB), rbB, frameInB, useLinearReferenceFrameA), true);
68   }
69 
getInfo1NonVirtual(btTypedConstraint.btConstraintInfo1 info)70   public void getInfo1NonVirtual(btTypedConstraint.btConstraintInfo1 info) {
71     DynamicsJNI.btSliderConstraint_getInfo1NonVirtual(swigCPtr, this, btTypedConstraint.btConstraintInfo1.getCPtr(info), info);
72   }
73 
getInfo2NonVirtual(btTypedConstraint.btConstraintInfo2 info, Matrix4 transA, Matrix4 transB, Vector3 linVelA, Vector3 linVelB, float rbAinvMass, float rbBinvMass)74   public void getInfo2NonVirtual(btTypedConstraint.btConstraintInfo2 info, Matrix4 transA, Matrix4 transB, Vector3 linVelA, Vector3 linVelB, float rbAinvMass, float rbBinvMass) {
75     DynamicsJNI.btSliderConstraint_getInfo2NonVirtual(swigCPtr, this, btTypedConstraint.btConstraintInfo2.getCPtr(info), info, transA, transB, linVelA, linVelB, rbAinvMass, rbBinvMass);
76   }
77 
getRigidBodyA()78   public btRigidBody getRigidBodyA() {
79 	return btRigidBody.getInstance(DynamicsJNI.btSliderConstraint_getRigidBodyA(swigCPtr, this), false);
80 }
81 
getRigidBodyB()82   public btRigidBody getRigidBodyB() {
83 	return btRigidBody.getInstance(DynamicsJNI.btSliderConstraint_getRigidBodyB(swigCPtr, this), false);
84 }
85 
getCalculatedTransformA()86   public Matrix4 getCalculatedTransformA() {
87 	return DynamicsJNI.btSliderConstraint_getCalculatedTransformA(swigCPtr, this);
88 }
89 
getCalculatedTransformB()90   public Matrix4 getCalculatedTransformB() {
91 	return DynamicsJNI.btSliderConstraint_getCalculatedTransformB(swigCPtr, this);
92 }
93 
getFrameOffsetA()94   public Matrix4 getFrameOffsetA() {
95 	return DynamicsJNI.btSliderConstraint_getFrameOffsetA__SWIG_0(swigCPtr, this);
96 }
97 
getFrameOffsetB()98   public Matrix4 getFrameOffsetB() {
99 	return DynamicsJNI.btSliderConstraint_getFrameOffsetB__SWIG_0(swigCPtr, this);
100 }
101 
getLowerLinLimit()102   public float getLowerLinLimit() {
103     return DynamicsJNI.btSliderConstraint_getLowerLinLimit(swigCPtr, this);
104   }
105 
setLowerLinLimit(float lowerLimit)106   public void setLowerLinLimit(float lowerLimit) {
107     DynamicsJNI.btSliderConstraint_setLowerLinLimit(swigCPtr, this, lowerLimit);
108   }
109 
getUpperLinLimit()110   public float getUpperLinLimit() {
111     return DynamicsJNI.btSliderConstraint_getUpperLinLimit(swigCPtr, this);
112   }
113 
setUpperLinLimit(float upperLimit)114   public void setUpperLinLimit(float upperLimit) {
115     DynamicsJNI.btSliderConstraint_setUpperLinLimit(swigCPtr, this, upperLimit);
116   }
117 
getLowerAngLimit()118   public float getLowerAngLimit() {
119     return DynamicsJNI.btSliderConstraint_getLowerAngLimit(swigCPtr, this);
120   }
121 
setLowerAngLimit(float lowerLimit)122   public void setLowerAngLimit(float lowerLimit) {
123     DynamicsJNI.btSliderConstraint_setLowerAngLimit(swigCPtr, this, lowerLimit);
124   }
125 
getUpperAngLimit()126   public float getUpperAngLimit() {
127     return DynamicsJNI.btSliderConstraint_getUpperAngLimit(swigCPtr, this);
128   }
129 
setUpperAngLimit(float upperLimit)130   public void setUpperAngLimit(float upperLimit) {
131     DynamicsJNI.btSliderConstraint_setUpperAngLimit(swigCPtr, this, upperLimit);
132   }
133 
getUseLinearReferenceFrameA()134   public boolean getUseLinearReferenceFrameA() {
135     return DynamicsJNI.btSliderConstraint_getUseLinearReferenceFrameA(swigCPtr, this);
136   }
137 
getSoftnessDirLin()138   public float getSoftnessDirLin() {
139     return DynamicsJNI.btSliderConstraint_getSoftnessDirLin(swigCPtr, this);
140   }
141 
getRestitutionDirLin()142   public float getRestitutionDirLin() {
143     return DynamicsJNI.btSliderConstraint_getRestitutionDirLin(swigCPtr, this);
144   }
145 
getDampingDirLin()146   public float getDampingDirLin() {
147     return DynamicsJNI.btSliderConstraint_getDampingDirLin(swigCPtr, this);
148   }
149 
getSoftnessDirAng()150   public float getSoftnessDirAng() {
151     return DynamicsJNI.btSliderConstraint_getSoftnessDirAng(swigCPtr, this);
152   }
153 
getRestitutionDirAng()154   public float getRestitutionDirAng() {
155     return DynamicsJNI.btSliderConstraint_getRestitutionDirAng(swigCPtr, this);
156   }
157 
getDampingDirAng()158   public float getDampingDirAng() {
159     return DynamicsJNI.btSliderConstraint_getDampingDirAng(swigCPtr, this);
160   }
161 
getSoftnessLimLin()162   public float getSoftnessLimLin() {
163     return DynamicsJNI.btSliderConstraint_getSoftnessLimLin(swigCPtr, this);
164   }
165 
getRestitutionLimLin()166   public float getRestitutionLimLin() {
167     return DynamicsJNI.btSliderConstraint_getRestitutionLimLin(swigCPtr, this);
168   }
169 
getDampingLimLin()170   public float getDampingLimLin() {
171     return DynamicsJNI.btSliderConstraint_getDampingLimLin(swigCPtr, this);
172   }
173 
getSoftnessLimAng()174   public float getSoftnessLimAng() {
175     return DynamicsJNI.btSliderConstraint_getSoftnessLimAng(swigCPtr, this);
176   }
177 
getRestitutionLimAng()178   public float getRestitutionLimAng() {
179     return DynamicsJNI.btSliderConstraint_getRestitutionLimAng(swigCPtr, this);
180   }
181 
getDampingLimAng()182   public float getDampingLimAng() {
183     return DynamicsJNI.btSliderConstraint_getDampingLimAng(swigCPtr, this);
184   }
185 
getSoftnessOrthoLin()186   public float getSoftnessOrthoLin() {
187     return DynamicsJNI.btSliderConstraint_getSoftnessOrthoLin(swigCPtr, this);
188   }
189 
getRestitutionOrthoLin()190   public float getRestitutionOrthoLin() {
191     return DynamicsJNI.btSliderConstraint_getRestitutionOrthoLin(swigCPtr, this);
192   }
193 
getDampingOrthoLin()194   public float getDampingOrthoLin() {
195     return DynamicsJNI.btSliderConstraint_getDampingOrthoLin(swigCPtr, this);
196   }
197 
getSoftnessOrthoAng()198   public float getSoftnessOrthoAng() {
199     return DynamicsJNI.btSliderConstraint_getSoftnessOrthoAng(swigCPtr, this);
200   }
201 
getRestitutionOrthoAng()202   public float getRestitutionOrthoAng() {
203     return DynamicsJNI.btSliderConstraint_getRestitutionOrthoAng(swigCPtr, this);
204   }
205 
getDampingOrthoAng()206   public float getDampingOrthoAng() {
207     return DynamicsJNI.btSliderConstraint_getDampingOrthoAng(swigCPtr, this);
208   }
209 
setSoftnessDirLin(float softnessDirLin)210   public void setSoftnessDirLin(float softnessDirLin) {
211     DynamicsJNI.btSliderConstraint_setSoftnessDirLin(swigCPtr, this, softnessDirLin);
212   }
213 
setRestitutionDirLin(float restitutionDirLin)214   public void setRestitutionDirLin(float restitutionDirLin) {
215     DynamicsJNI.btSliderConstraint_setRestitutionDirLin(swigCPtr, this, restitutionDirLin);
216   }
217 
setDampingDirLin(float dampingDirLin)218   public void setDampingDirLin(float dampingDirLin) {
219     DynamicsJNI.btSliderConstraint_setDampingDirLin(swigCPtr, this, dampingDirLin);
220   }
221 
setSoftnessDirAng(float softnessDirAng)222   public void setSoftnessDirAng(float softnessDirAng) {
223     DynamicsJNI.btSliderConstraint_setSoftnessDirAng(swigCPtr, this, softnessDirAng);
224   }
225 
setRestitutionDirAng(float restitutionDirAng)226   public void setRestitutionDirAng(float restitutionDirAng) {
227     DynamicsJNI.btSliderConstraint_setRestitutionDirAng(swigCPtr, this, restitutionDirAng);
228   }
229 
setDampingDirAng(float dampingDirAng)230   public void setDampingDirAng(float dampingDirAng) {
231     DynamicsJNI.btSliderConstraint_setDampingDirAng(swigCPtr, this, dampingDirAng);
232   }
233 
setSoftnessLimLin(float softnessLimLin)234   public void setSoftnessLimLin(float softnessLimLin) {
235     DynamicsJNI.btSliderConstraint_setSoftnessLimLin(swigCPtr, this, softnessLimLin);
236   }
237 
setRestitutionLimLin(float restitutionLimLin)238   public void setRestitutionLimLin(float restitutionLimLin) {
239     DynamicsJNI.btSliderConstraint_setRestitutionLimLin(swigCPtr, this, restitutionLimLin);
240   }
241 
setDampingLimLin(float dampingLimLin)242   public void setDampingLimLin(float dampingLimLin) {
243     DynamicsJNI.btSliderConstraint_setDampingLimLin(swigCPtr, this, dampingLimLin);
244   }
245 
setSoftnessLimAng(float softnessLimAng)246   public void setSoftnessLimAng(float softnessLimAng) {
247     DynamicsJNI.btSliderConstraint_setSoftnessLimAng(swigCPtr, this, softnessLimAng);
248   }
249 
setRestitutionLimAng(float restitutionLimAng)250   public void setRestitutionLimAng(float restitutionLimAng) {
251     DynamicsJNI.btSliderConstraint_setRestitutionLimAng(swigCPtr, this, restitutionLimAng);
252   }
253 
setDampingLimAng(float dampingLimAng)254   public void setDampingLimAng(float dampingLimAng) {
255     DynamicsJNI.btSliderConstraint_setDampingLimAng(swigCPtr, this, dampingLimAng);
256   }
257 
setSoftnessOrthoLin(float softnessOrthoLin)258   public void setSoftnessOrthoLin(float softnessOrthoLin) {
259     DynamicsJNI.btSliderConstraint_setSoftnessOrthoLin(swigCPtr, this, softnessOrthoLin);
260   }
261 
setRestitutionOrthoLin(float restitutionOrthoLin)262   public void setRestitutionOrthoLin(float restitutionOrthoLin) {
263     DynamicsJNI.btSliderConstraint_setRestitutionOrthoLin(swigCPtr, this, restitutionOrthoLin);
264   }
265 
setDampingOrthoLin(float dampingOrthoLin)266   public void setDampingOrthoLin(float dampingOrthoLin) {
267     DynamicsJNI.btSliderConstraint_setDampingOrthoLin(swigCPtr, this, dampingOrthoLin);
268   }
269 
setSoftnessOrthoAng(float softnessOrthoAng)270   public void setSoftnessOrthoAng(float softnessOrthoAng) {
271     DynamicsJNI.btSliderConstraint_setSoftnessOrthoAng(swigCPtr, this, softnessOrthoAng);
272   }
273 
setRestitutionOrthoAng(float restitutionOrthoAng)274   public void setRestitutionOrthoAng(float restitutionOrthoAng) {
275     DynamicsJNI.btSliderConstraint_setRestitutionOrthoAng(swigCPtr, this, restitutionOrthoAng);
276   }
277 
setDampingOrthoAng(float dampingOrthoAng)278   public void setDampingOrthoAng(float dampingOrthoAng) {
279     DynamicsJNI.btSliderConstraint_setDampingOrthoAng(swigCPtr, this, dampingOrthoAng);
280   }
281 
setPoweredLinMotor(boolean onOff)282   public void setPoweredLinMotor(boolean onOff) {
283     DynamicsJNI.btSliderConstraint_setPoweredLinMotor(swigCPtr, this, onOff);
284   }
285 
getPoweredLinMotor()286   public boolean getPoweredLinMotor() {
287     return DynamicsJNI.btSliderConstraint_getPoweredLinMotor(swigCPtr, this);
288   }
289 
setTargetLinMotorVelocity(float targetLinMotorVelocity)290   public void setTargetLinMotorVelocity(float targetLinMotorVelocity) {
291     DynamicsJNI.btSliderConstraint_setTargetLinMotorVelocity(swigCPtr, this, targetLinMotorVelocity);
292   }
293 
getTargetLinMotorVelocity()294   public float getTargetLinMotorVelocity() {
295     return DynamicsJNI.btSliderConstraint_getTargetLinMotorVelocity(swigCPtr, this);
296   }
297 
setMaxLinMotorForce(float maxLinMotorForce)298   public void setMaxLinMotorForce(float maxLinMotorForce) {
299     DynamicsJNI.btSliderConstraint_setMaxLinMotorForce(swigCPtr, this, maxLinMotorForce);
300   }
301 
getMaxLinMotorForce()302   public float getMaxLinMotorForce() {
303     return DynamicsJNI.btSliderConstraint_getMaxLinMotorForce(swigCPtr, this);
304   }
305 
setPoweredAngMotor(boolean onOff)306   public void setPoweredAngMotor(boolean onOff) {
307     DynamicsJNI.btSliderConstraint_setPoweredAngMotor(swigCPtr, this, onOff);
308   }
309 
getPoweredAngMotor()310   public boolean getPoweredAngMotor() {
311     return DynamicsJNI.btSliderConstraint_getPoweredAngMotor(swigCPtr, this);
312   }
313 
setTargetAngMotorVelocity(float targetAngMotorVelocity)314   public void setTargetAngMotorVelocity(float targetAngMotorVelocity) {
315     DynamicsJNI.btSliderConstraint_setTargetAngMotorVelocity(swigCPtr, this, targetAngMotorVelocity);
316   }
317 
getTargetAngMotorVelocity()318   public float getTargetAngMotorVelocity() {
319     return DynamicsJNI.btSliderConstraint_getTargetAngMotorVelocity(swigCPtr, this);
320   }
321 
setMaxAngMotorForce(float maxAngMotorForce)322   public void setMaxAngMotorForce(float maxAngMotorForce) {
323     DynamicsJNI.btSliderConstraint_setMaxAngMotorForce(swigCPtr, this, maxAngMotorForce);
324   }
325 
getMaxAngMotorForce()326   public float getMaxAngMotorForce() {
327     return DynamicsJNI.btSliderConstraint_getMaxAngMotorForce(swigCPtr, this);
328   }
329 
getLinearPos()330   public float getLinearPos() {
331     return DynamicsJNI.btSliderConstraint_getLinearPos(swigCPtr, this);
332   }
333 
getAngularPos()334   public float getAngularPos() {
335     return DynamicsJNI.btSliderConstraint_getAngularPos(swigCPtr, this);
336   }
337 
getSolveLinLimit()338   public boolean getSolveLinLimit() {
339     return DynamicsJNI.btSliderConstraint_getSolveLinLimit(swigCPtr, this);
340   }
341 
getLinDepth()342   public float getLinDepth() {
343     return DynamicsJNI.btSliderConstraint_getLinDepth(swigCPtr, this);
344   }
345 
getSolveAngLimit()346   public boolean getSolveAngLimit() {
347     return DynamicsJNI.btSliderConstraint_getSolveAngLimit(swigCPtr, this);
348   }
349 
getAngDepth()350   public float getAngDepth() {
351     return DynamicsJNI.btSliderConstraint_getAngDepth(swigCPtr, this);
352   }
353 
calculateTransforms(Matrix4 transA, Matrix4 transB)354   public void calculateTransforms(Matrix4 transA, Matrix4 transB) {
355     DynamicsJNI.btSliderConstraint_calculateTransforms(swigCPtr, this, transA, transB);
356   }
357 
testLinLimits()358   public void testLinLimits() {
359     DynamicsJNI.btSliderConstraint_testLinLimits(swigCPtr, this);
360   }
361 
testAngLimits()362   public void testAngLimits() {
363     DynamicsJNI.btSliderConstraint_testAngLimits(swigCPtr, this);
364   }
365 
getAncorInA()366   public Vector3 getAncorInA() {
367 	return DynamicsJNI.btSliderConstraint_getAncorInA(swigCPtr, this);
368 }
369 
getAncorInB()370   public Vector3 getAncorInB() {
371 	return DynamicsJNI.btSliderConstraint_getAncorInB(swigCPtr, this);
372 }
373 
getUseFrameOffset()374   public boolean getUseFrameOffset() {
375     return DynamicsJNI.btSliderConstraint_getUseFrameOffset(swigCPtr, this);
376   }
377 
setUseFrameOffset(boolean frameOffsetOnOff)378   public void setUseFrameOffset(boolean frameOffsetOnOff) {
379     DynamicsJNI.btSliderConstraint_setUseFrameOffset(swigCPtr, this, frameOffsetOnOff);
380   }
381 
setFrames(Matrix4 frameA, Matrix4 frameB)382   public void setFrames(Matrix4 frameA, Matrix4 frameB) {
383     DynamicsJNI.btSliderConstraint_setFrames(swigCPtr, this, frameA, frameB);
384   }
385 
setParam(int num, float value, int axis)386   public void setParam(int num, float value, int axis) {
387     DynamicsJNI.btSliderConstraint_setParam__SWIG_0(swigCPtr, this, num, value, axis);
388   }
389 
setParam(int num, float value)390   public void setParam(int num, float value) {
391     DynamicsJNI.btSliderConstraint_setParam__SWIG_1(swigCPtr, this, num, value);
392   }
393 
getParam(int num, int axis)394   public float getParam(int num, int axis) {
395     return DynamicsJNI.btSliderConstraint_getParam__SWIG_0(swigCPtr, this, num, axis);
396   }
397 
getParam(int num)398   public float getParam(int num) {
399     return DynamicsJNI.btSliderConstraint_getParam__SWIG_1(swigCPtr, this, num);
400   }
401 
402 }
403