1 /* ---------------------------------------------------------------------------- 2 * This file was automatically generated by SWIG (http://www.swig.org). 3 * Version 3.0.8 4 * 5 * Do not make changes to this file unless you know what you are doing--modify 6 * the SWIG interface file instead. 7 * ----------------------------------------------------------------------------- */ 8 9 package com.badlogic.gdx.physics.bullet.collision; 10 11 import com.badlogic.gdx.physics.bullet.BulletBase; 12 import com.badlogic.gdx.physics.bullet.linearmath.*; 13 import com.badlogic.gdx.math.Vector3; 14 import com.badlogic.gdx.math.Quaternion; 15 import com.badlogic.gdx.math.Matrix3; 16 import com.badlogic.gdx.math.Matrix4; 17 18 public class btConvexInternalShape extends btConvexShape { 19 private long swigCPtr; 20 btConvexInternalShape(final String className, long cPtr, boolean cMemoryOwn)21 protected btConvexInternalShape(final String className, long cPtr, boolean cMemoryOwn) { 22 super(className, CollisionJNI.btConvexInternalShape_SWIGUpcast(cPtr), cMemoryOwn); 23 swigCPtr = cPtr; 24 } 25 26 /** Construct a new btConvexInternalShape, normally you should not need this constructor it's intended for low-level usage. */ btConvexInternalShape(long cPtr, boolean cMemoryOwn)27 public btConvexInternalShape(long cPtr, boolean cMemoryOwn) { 28 this("btConvexInternalShape", cPtr, cMemoryOwn); 29 construct(); 30 } 31 32 @Override reset(long cPtr, boolean cMemoryOwn)33 protected void reset(long cPtr, boolean cMemoryOwn) { 34 if (!destroyed) 35 destroy(); 36 super.reset(CollisionJNI.btConvexInternalShape_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn); 37 } 38 getCPtr(btConvexInternalShape obj)39 public static long getCPtr(btConvexInternalShape obj) { 40 return (obj == null) ? 0 : obj.swigCPtr; 41 } 42 43 @Override finalize()44 protected void finalize() throws Throwable { 45 if (!destroyed) 46 destroy(); 47 super.finalize(); 48 } 49 delete()50 @Override protected synchronized void delete() { 51 if (swigCPtr != 0) { 52 if (swigCMemOwn) { 53 swigCMemOwn = false; 54 CollisionJNI.delete_btConvexInternalShape(swigCPtr); 55 } 56 swigCPtr = 0; 57 } 58 super.delete(); 59 } 60 getImplicitShapeDimensions()61 public Vector3 getImplicitShapeDimensions() { 62 return CollisionJNI.btConvexInternalShape_getImplicitShapeDimensions(swigCPtr, this); 63 } 64 setImplicitShapeDimensions(Vector3 dimensions)65 public void setImplicitShapeDimensions(Vector3 dimensions) { 66 CollisionJNI.btConvexInternalShape_setImplicitShapeDimensions(swigCPtr, this, dimensions); 67 } 68 setSafeMargin(float minDimension, float defaultMarginMultiplier)69 public void setSafeMargin(float minDimension, float defaultMarginMultiplier) { 70 CollisionJNI.btConvexInternalShape_setSafeMargin__SWIG_0(swigCPtr, this, minDimension, defaultMarginMultiplier); 71 } 72 setSafeMargin(float minDimension)73 public void setSafeMargin(float minDimension) { 74 CollisionJNI.btConvexInternalShape_setSafeMargin__SWIG_1(swigCPtr, this, minDimension); 75 } 76 setSafeMargin(Vector3 halfExtents, float defaultMarginMultiplier)77 public void setSafeMargin(Vector3 halfExtents, float defaultMarginMultiplier) { 78 CollisionJNI.btConvexInternalShape_setSafeMargin__SWIG_2(swigCPtr, this, halfExtents, defaultMarginMultiplier); 79 } 80 setSafeMargin(Vector3 halfExtents)81 public void setSafeMargin(Vector3 halfExtents) { 82 CollisionJNI.btConvexInternalShape_setSafeMargin__SWIG_3(swigCPtr, this, halfExtents); 83 } 84 getLocalScalingNV()85 public Vector3 getLocalScalingNV() { 86 return CollisionJNI.btConvexInternalShape_getLocalScalingNV(swigCPtr, this); 87 } 88 getMarginNV()89 public float getMarginNV() { 90 return CollisionJNI.btConvexInternalShape_getMarginNV(swigCPtr, this); 91 } 92 93 } 94