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 SoftBodyTetraData extends BulletBase {
\r
17 private long swigCPtr;
\r
19 protected SoftBodyTetraData(final String className, long cPtr, boolean cMemoryOwn) {
\r
20 super(className, cPtr, cMemoryOwn);
\r
24 protected SoftBodyTetraData(long cPtr, boolean cMemoryOwn) {
\r
25 this("SoftBodyTetraData", cPtr, cMemoryOwn);
\r
29 public static long getCPtr(SoftBodyTetraData 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_SoftBodyTetraData(swigCPtr);
\r
51 public void setC0(btVector3FloatData value) {
\r
52 gdxBulletJNI.SoftBodyTetraData_c0_set(swigCPtr, this, btVector3FloatData.getCPtr(value), value);
\r
55 public btVector3FloatData getC0() {
\r
56 long cPtr = gdxBulletJNI.SoftBodyTetraData_c0_get(swigCPtr, this);
\r
57 return (cPtr == 0) ? null : new btVector3FloatData(cPtr, false);
\r
60 public void setMaterial(SoftBodyMaterialData value) {
\r
61 gdxBulletJNI.SoftBodyTetraData_material_set(swigCPtr, this, SoftBodyMaterialData.getCPtr(value), value);
\r
64 public SoftBodyMaterialData getMaterial() {
\r
65 long cPtr = gdxBulletJNI.SoftBodyTetraData_material_get(swigCPtr, this);
\r
66 return (cPtr == 0) ? null : new SoftBodyMaterialData(cPtr, false);
\r
69 public void setNodeIndices(int[] value) {
\r
70 gdxBulletJNI.SoftBodyTetraData_nodeIndices_set(swigCPtr, this, value);
\r
73 public int[] getNodeIndices() {
\r
74 return gdxBulletJNI.SoftBodyTetraData_nodeIndices_get(swigCPtr, this);
\r
77 public void setRestVolume(float value) {
\r
78 gdxBulletJNI.SoftBodyTetraData_restVolume_set(swigCPtr, this, value);
\r
81 public float getRestVolume() {
\r
82 return gdxBulletJNI.SoftBodyTetraData_restVolume_get(swigCPtr, this);
\r
85 public void setC1(float value) {
\r
86 gdxBulletJNI.SoftBodyTetraData_c1_set(swigCPtr, this, value);
\r
89 public float getC1() {
\r
90 return gdxBulletJNI.SoftBodyTetraData_c1_get(swigCPtr, this);
\r
93 public void setC2(float value) {
\r
94 gdxBulletJNI.SoftBodyTetraData_c2_set(swigCPtr, this, value);
\r
97 public float getC2() {
\r
98 return gdxBulletJNI.SoftBodyTetraData_c2_get(swigCPtr, this);
\r
101 public void setPad(int value) {
\r
102 gdxBulletJNI.SoftBodyTetraData_pad_set(swigCPtr, this, value);
\r
105 public int getPad() {
\r
106 return gdxBulletJNI.SoftBodyTetraData_pad_get(swigCPtr, this);
\r
109 public SoftBodyTetraData() {
\r
110 this(gdxBulletJNI.new_SoftBodyTetraData(), true);
\r