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 SoftRigidAnchorData extends BulletBase {
\r
17 private long swigCPtr;
\r
19 protected SoftRigidAnchorData(final String className, long cPtr, boolean cMemoryOwn) {
\r
20 super(className, cPtr, cMemoryOwn);
\r
24 protected SoftRigidAnchorData(long cPtr, boolean cMemoryOwn) {
\r
25 this("SoftRigidAnchorData", cPtr, cMemoryOwn);
\r
29 public static long getCPtr(SoftRigidAnchorData 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_SoftRigidAnchorData(swigCPtr);
\r
51 public void setC0(SWIGTYPE_p_btMatrix3x3FloatData value) {
\r
52 gdxBulletJNI.SoftRigidAnchorData_c0_set(swigCPtr, this, SWIGTYPE_p_btMatrix3x3FloatData.getCPtr(value));
\r
55 public SWIGTYPE_p_btMatrix3x3FloatData getC0() {
\r
56 return new SWIGTYPE_p_btMatrix3x3FloatData(gdxBulletJNI.SoftRigidAnchorData_c0_get(swigCPtr, this), true);
\r
59 public void setC1(btVector3FloatData value) {
\r
60 gdxBulletJNI.SoftRigidAnchorData_c1_set(swigCPtr, this, btVector3FloatData.getCPtr(value), value);
\r
63 public btVector3FloatData getC1() {
\r
64 long cPtr = gdxBulletJNI.SoftRigidAnchorData_c1_get(swigCPtr, this);
\r
65 return (cPtr == 0) ? null : new btVector3FloatData(cPtr, false);
\r
68 public void setLocalFrame(btVector3FloatData value) {
\r
69 gdxBulletJNI.SoftRigidAnchorData_localFrame_set(swigCPtr, this, btVector3FloatData.getCPtr(value), value);
\r
72 public btVector3FloatData getLocalFrame() {
\r
73 long cPtr = gdxBulletJNI.SoftRigidAnchorData_localFrame_get(swigCPtr, this);
\r
74 return (cPtr == 0) ? null : new btVector3FloatData(cPtr, false);
\r
77 public void setRigidBody(btRigidBodyFloatData value) {
\r
78 gdxBulletJNI.SoftRigidAnchorData_rigidBody_set(swigCPtr, this, btRigidBodyFloatData.getCPtr(value), value);
\r
81 public btRigidBodyFloatData getRigidBody() {
\r
82 long cPtr = gdxBulletJNI.SoftRigidAnchorData_rigidBody_get(swigCPtr, this);
\r
83 return (cPtr == 0) ? null : new btRigidBodyFloatData(cPtr, false);
\r
86 public void setNodeIndex(int value) {
\r
87 gdxBulletJNI.SoftRigidAnchorData_nodeIndex_set(swigCPtr, this, value);
\r
90 public int getNodeIndex() {
\r
91 return gdxBulletJNI.SoftRigidAnchorData_nodeIndex_get(swigCPtr, this);
\r
94 public void setC2(float value) {
\r
95 gdxBulletJNI.SoftRigidAnchorData_c2_set(swigCPtr, this, value);
\r
98 public float getC2() {
\r
99 return gdxBulletJNI.SoftRigidAnchorData_c2_get(swigCPtr, this);
\r
102 public SoftRigidAnchorData() {
\r
103 this(gdxBulletJNI.new_SoftRigidAnchorData(), true);
\r