• 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 btPoint2PointConstraint extends btTypedConstraint {
20 	private long swigCPtr;
21 
btPoint2PointConstraint(final String className, long cPtr, boolean cMemoryOwn)22 	protected btPoint2PointConstraint(final String className, long cPtr, boolean cMemoryOwn) {
23 		super(className, DynamicsJNI.btPoint2PointConstraint_SWIGUpcast(cPtr), cMemoryOwn);
24 		swigCPtr = cPtr;
25 	}
26 
27 	/** Construct a new btPoint2PointConstraint, normally you should not need this constructor it's intended for low-level usage. */
btPoint2PointConstraint(long cPtr, boolean cMemoryOwn)28 	public btPoint2PointConstraint(long cPtr, boolean cMemoryOwn) {
29 		this("btPoint2PointConstraint", 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.btPoint2PointConstraint_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn);
38 	}
39 
getCPtr(btPoint2PointConstraint obj)40 	public static long getCPtr(btPoint2PointConstraint 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_btPoint2PointConstraint(swigCPtr);
56 			}
57 			swigCPtr = 0;
58 		}
59 		super.delete();
60 	}
61 
setUseSolveConstraintObsolete(boolean value)62   public void setUseSolveConstraintObsolete(boolean value) {
63     DynamicsJNI.btPoint2PointConstraint_useSolveConstraintObsolete_set(swigCPtr, this, value);
64   }
65 
getUseSolveConstraintObsolete()66   public boolean getUseSolveConstraintObsolete() {
67     return DynamicsJNI.btPoint2PointConstraint_useSolveConstraintObsolete_get(swigCPtr, this);
68   }
69 
setSetting(btConstraintSetting value)70   public void setSetting(btConstraintSetting value) {
71     DynamicsJNI.btPoint2PointConstraint_setting_set(swigCPtr, this, btConstraintSetting.getCPtr(value), value);
72   }
73 
getSetting()74   public btConstraintSetting getSetting() {
75     long cPtr = DynamicsJNI.btPoint2PointConstraint_setting_get(swigCPtr, this);
76     return (cPtr == 0) ? null : new btConstraintSetting(cPtr, false);
77   }
78 
btPoint2PointConstraint(btRigidBody rbA, btRigidBody rbB, Vector3 pivotInA, Vector3 pivotInB)79   public btPoint2PointConstraint(btRigidBody rbA, btRigidBody rbB, Vector3 pivotInA, Vector3 pivotInB) {
80     this(DynamicsJNI.new_btPoint2PointConstraint__SWIG_0(btRigidBody.getCPtr(rbA), rbA, btRigidBody.getCPtr(rbB), rbB, pivotInA, pivotInB), true);
81   }
82 
btPoint2PointConstraint(btRigidBody rbA, Vector3 pivotInA)83   public btPoint2PointConstraint(btRigidBody rbA, Vector3 pivotInA) {
84     this(DynamicsJNI.new_btPoint2PointConstraint__SWIG_1(btRigidBody.getCPtr(rbA), rbA, pivotInA), true);
85   }
86 
getInfo1NonVirtual(btTypedConstraint.btConstraintInfo1 info)87   public void getInfo1NonVirtual(btTypedConstraint.btConstraintInfo1 info) {
88     DynamicsJNI.btPoint2PointConstraint_getInfo1NonVirtual(swigCPtr, this, btTypedConstraint.btConstraintInfo1.getCPtr(info), info);
89   }
90 
getInfo2NonVirtual(btTypedConstraint.btConstraintInfo2 info, Matrix4 body0_trans, Matrix4 body1_trans)91   public void getInfo2NonVirtual(btTypedConstraint.btConstraintInfo2 info, Matrix4 body0_trans, Matrix4 body1_trans) {
92     DynamicsJNI.btPoint2PointConstraint_getInfo2NonVirtual(swigCPtr, this, btTypedConstraint.btConstraintInfo2.getCPtr(info), info, body0_trans, body1_trans);
93   }
94 
updateRHS(float timeStep)95   public void updateRHS(float timeStep) {
96     DynamicsJNI.btPoint2PointConstraint_updateRHS(swigCPtr, this, timeStep);
97   }
98 
setPivotA(Vector3 pivotA)99   public void setPivotA(Vector3 pivotA) {
100     DynamicsJNI.btPoint2PointConstraint_setPivotA(swigCPtr, this, pivotA);
101   }
102 
setPivotB(Vector3 pivotB)103   public void setPivotB(Vector3 pivotB) {
104     DynamicsJNI.btPoint2PointConstraint_setPivotB(swigCPtr, this, pivotB);
105   }
106 
getPivotInA()107   public Vector3 getPivotInA() {
108 	return DynamicsJNI.btPoint2PointConstraint_getPivotInA(swigCPtr, this);
109 }
110 
getPivotInB()111   public Vector3 getPivotInB() {
112 	return DynamicsJNI.btPoint2PointConstraint_getPivotInB(swigCPtr, this);
113 }
114 
setParam(int num, float value, int axis)115   public void setParam(int num, float value, int axis) {
116     DynamicsJNI.btPoint2PointConstraint_setParam__SWIG_0(swigCPtr, this, num, value, axis);
117   }
118 
setParam(int num, float value)119   public void setParam(int num, float value) {
120     DynamicsJNI.btPoint2PointConstraint_setParam__SWIG_1(swigCPtr, this, num, value);
121   }
122 
getParam(int num, int axis)123   public float getParam(int num, int axis) {
124     return DynamicsJNI.btPoint2PointConstraint_getParam__SWIG_0(swigCPtr, this, num, axis);
125   }
126 
getParam(int num)127   public float getParam(int num) {
128     return DynamicsJNI.btPoint2PointConstraint_getParam__SWIG_1(swigCPtr, this, num);
129   }
130 
131 }
132