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 btCompoundShapeData extends BulletBase {
\r
17 private long swigCPtr;
\r
19 protected btCompoundShapeData(final String className, long cPtr, boolean cMemoryOwn) {
\r
20 super(className, cPtr, cMemoryOwn);
\r
24 protected btCompoundShapeData(long cPtr, boolean cMemoryOwn) {
\r
25 this("btCompoundShapeData", cPtr, cMemoryOwn);
\r
29 public static long getCPtr(btCompoundShapeData 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_btCompoundShapeData(swigCPtr);
\r
51 public void setCollisionShapeData(btCollisionShapeData value) {
\r
52 gdxBulletJNI.btCompoundShapeData_collisionShapeData_set(swigCPtr, this, btCollisionShapeData.getCPtr(value), value);
\r
55 public btCollisionShapeData getCollisionShapeData() {
\r
56 long cPtr = gdxBulletJNI.btCompoundShapeData_collisionShapeData_get(swigCPtr, this);
\r
57 return (cPtr == 0) ? null : new btCollisionShapeData(cPtr, false);
\r
60 public void setChildShapePtr(btCompoundShapeChildData value) {
\r
61 gdxBulletJNI.btCompoundShapeData_childShapePtr_set(swigCPtr, this, btCompoundShapeChildData.getCPtr(value), value);
\r
64 public btCompoundShapeChildData getChildShapePtr() {
\r
65 long cPtr = gdxBulletJNI.btCompoundShapeData_childShapePtr_get(swigCPtr, this);
\r
66 return (cPtr == 0) ? null : new btCompoundShapeChildData(cPtr, false);
\r
69 public void setNumChildShapes(int value) {
\r
70 gdxBulletJNI.btCompoundShapeData_numChildShapes_set(swigCPtr, this, value);
\r
73 public int getNumChildShapes() {
\r
74 return gdxBulletJNI.btCompoundShapeData_numChildShapes_get(swigCPtr, this);
\r
77 public void setCollisionMargin(float value) {
\r
78 gdxBulletJNI.btCompoundShapeData_collisionMargin_set(swigCPtr, this, value);
\r
81 public float getCollisionMargin() {
\r
82 return gdxBulletJNI.btCompoundShapeData_collisionMargin_get(swigCPtr, this);
\r
85 public btCompoundShapeData() {
\r
86 this(gdxBulletJNI.new_btCompoundShapeData(), true);
\r