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 btSoftBodyWorldInfo extends BulletBase {
\r
17 private long swigCPtr;
\r
19 protected btSoftBodyWorldInfo(final String className, long cPtr, boolean cMemoryOwn) {
\r
20 super(className, cPtr, cMemoryOwn);
\r
24 protected btSoftBodyWorldInfo(long cPtr, boolean cMemoryOwn) {
\r
25 this("btSoftBodyWorldInfo", cPtr, cMemoryOwn);
\r
29 public static long getCPtr(btSoftBodyWorldInfo 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_btSoftBodyWorldInfo(swigCPtr);
\r
51 public void setAir_density(float value) {
\r
52 gdxBulletJNI.btSoftBodyWorldInfo_air_density_set(swigCPtr, this, value);
\r
55 public float getAir_density() {
\r
56 return gdxBulletJNI.btSoftBodyWorldInfo_air_density_get(swigCPtr, this);
\r
59 public void setWater_density(float value) {
\r
60 gdxBulletJNI.btSoftBodyWorldInfo_water_density_set(swigCPtr, this, value);
\r
63 public float getWater_density() {
\r
64 return gdxBulletJNI.btSoftBodyWorldInfo_water_density_get(swigCPtr, this);
\r
67 public void setWater_offset(float value) {
\r
68 gdxBulletJNI.btSoftBodyWorldInfo_water_offset_set(swigCPtr, this, value);
\r
71 public float getWater_offset() {
\r
72 return gdxBulletJNI.btSoftBodyWorldInfo_water_offset_get(swigCPtr, this);
\r
75 public void setWater_normal(btVector3 value) {
\r
76 gdxBulletJNI.btSoftBodyWorldInfo_water_normal_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
79 public btVector3 getWater_normal() {
\r
80 long cPtr = gdxBulletJNI.btSoftBodyWorldInfo_water_normal_get(swigCPtr, this);
\r
81 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
84 public void setBroadphase(btBroadphaseInterface value) {
\r
85 gdxBulletJNI.btSoftBodyWorldInfo_broadphase_set(swigCPtr, this, btBroadphaseInterface.getCPtr(value), value);
\r
88 public btBroadphaseInterface getBroadphase() {
\r
89 long cPtr = gdxBulletJNI.btSoftBodyWorldInfo_broadphase_get(swigCPtr, this);
\r
90 return (cPtr == 0) ? null : new btBroadphaseInterface(cPtr, false);
\r
93 public void setDispatcher(btDispatcher value) {
\r
94 gdxBulletJNI.btSoftBodyWorldInfo_dispatcher_set(swigCPtr, this, btDispatcher.getCPtr(value), value);
\r
97 public btDispatcher getDispatcher() {
\r
98 long cPtr = gdxBulletJNI.btSoftBodyWorldInfo_dispatcher_get(swigCPtr, this);
\r
99 return (cPtr == 0) ? null : new btDispatcher(cPtr, false);
\r
102 public void setGravity(btVector3 value) {
\r
103 gdxBulletJNI.btSoftBodyWorldInfo_gravity_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
106 public btVector3 getGravity() {
\r
107 long cPtr = gdxBulletJNI.btSoftBodyWorldInfo_gravity_get(swigCPtr, this);
\r
108 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
111 public void setSparsesdf(btSparseSdf3 value) {
\r
112 gdxBulletJNI.btSoftBodyWorldInfo_sparsesdf_set(swigCPtr, this, btSparseSdf3.getCPtr(value), value);
\r
115 public btSparseSdf3 getSparsesdf() {
\r
116 long cPtr = gdxBulletJNI.btSoftBodyWorldInfo_sparsesdf_get(swigCPtr, this);
\r
117 return (cPtr == 0) ? null : new btSparseSdf3(cPtr, false);
\r
120 public btSoftBodyWorldInfo() {
\r
121 this(gdxBulletJNI.new_btSoftBodyWorldInfo(), true);
\r