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 btShapeHull extends BulletBase {
\r
17 private long swigCPtr;
\r
19 protected btShapeHull(final String className, long cPtr, boolean cMemoryOwn) {
\r
20 super(className, cPtr, cMemoryOwn);
\r
24 protected btShapeHull(long cPtr, boolean cMemoryOwn) {
\r
25 this("btShapeHull", cPtr, cMemoryOwn);
\r
29 public static long getCPtr(btShapeHull 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_btShapeHull(swigCPtr);
\r
51 public btShapeHull(btConvexShape shape) {
\r
52 this(gdxBulletJNI.new_btShapeHull(btConvexShape.getCPtr(shape), shape), true);
\r
55 public boolean buildHull(float margin) {
\r
56 return gdxBulletJNI.btShapeHull_buildHull(swigCPtr, this, margin);
\r
59 public int numTriangles() {
\r
60 return gdxBulletJNI.btShapeHull_numTriangles(swigCPtr, this);
\r
63 public int numVertices() {
\r
64 return gdxBulletJNI.btShapeHull_numVertices(swigCPtr, this);
\r
67 public int numIndices() {
\r
68 return gdxBulletJNI.btShapeHull_numIndices(swigCPtr, this);
\r
71 public btVector3 getVertexPointer() {
\r
72 long cPtr = gdxBulletJNI.btShapeHull_getVertexPointer(swigCPtr, this);
\r
73 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
76 public java.nio.LongBuffer getIndexPointer() {
\r
77 return gdxBulletJNI.btShapeHull_getIndexPointer(swigCPtr, this);
\r