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 sMedium {
\r
17 private long swigCPtr;
\r
18 protected boolean swigCMemOwn;
\r
20 protected sMedium(long cPtr, boolean cMemoryOwn) {
\r
21 swigCMemOwn = cMemoryOwn;
\r
25 public static long getCPtr(sMedium obj) {
\r
26 return (obj == null) ? 0 : obj.swigCPtr;
\r
29 protected void finalize() {
\r
33 public synchronized void delete() {
\r
34 if (swigCPtr != 0) {
\r
36 swigCMemOwn = false;
\r
37 gdxBulletJNI.delete_sMedium(swigCPtr);
\r
43 public void setM_velocity(btVector3 value) {
\r
44 gdxBulletJNI.sMedium_m_velocity_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
47 public btVector3 getM_velocity() {
\r
48 long cPtr = gdxBulletJNI.sMedium_m_velocity_get(swigCPtr, this);
\r
49 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
52 public void setM_pressure(float value) {
\r
53 gdxBulletJNI.sMedium_m_pressure_set(swigCPtr, this, value);
\r
56 public float getM_pressure() {
\r
57 return gdxBulletJNI.sMedium_m_pressure_get(swigCPtr, this);
\r
60 public void setM_density(float value) {
\r
61 gdxBulletJNI.sMedium_m_density_set(swigCPtr, this, value);
\r
64 public float getM_density() {
\r
65 return gdxBulletJNI.sMedium_m_density_get(swigCPtr, this);
\r
69 this(gdxBulletJNI.new_sMedium(), true);
\r