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 btMinkowskiSumShape extends btConvexInternalShape { 19 private long swigCPtr; 20 btMinkowskiSumShape(final String className, long cPtr, boolean cMemoryOwn)21 protected btMinkowskiSumShape(final String className, long cPtr, boolean cMemoryOwn) { 22 super(className, CollisionJNI.btMinkowskiSumShape_SWIGUpcast(cPtr), cMemoryOwn); 23 swigCPtr = cPtr; 24 } 25 26 /** Construct a new btMinkowskiSumShape, normally you should not need this constructor it's intended for low-level usage. */ btMinkowskiSumShape(long cPtr, boolean cMemoryOwn)27 public btMinkowskiSumShape(long cPtr, boolean cMemoryOwn) { 28 this("btMinkowskiSumShape", 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.btMinkowskiSumShape_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn); 37 } 38 getCPtr(btMinkowskiSumShape obj)39 public static long getCPtr(btMinkowskiSumShape 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_btMinkowskiSumShape(swigCPtr); 55 } 56 swigCPtr = 0; 57 } 58 super.delete(); 59 } 60 btMinkowskiSumShape(btConvexShape shapeA, btConvexShape shapeB)61 public btMinkowskiSumShape(btConvexShape shapeA, btConvexShape shapeB) { 62 this(CollisionJNI.new_btMinkowskiSumShape(btConvexShape.getCPtr(shapeA), shapeA, btConvexShape.getCPtr(shapeB), shapeB), true); 63 } 64 setTransformA(Matrix4 transA)65 public void setTransformA(Matrix4 transA) { 66 CollisionJNI.btMinkowskiSumShape_setTransformA(swigCPtr, this, transA); 67 } 68 setTransformB(Matrix4 transB)69 public void setTransformB(Matrix4 transB) { 70 CollisionJNI.btMinkowskiSumShape_setTransformB(swigCPtr, this, transB); 71 } 72 getTransformA()73 public Matrix4 getTransformA() { 74 return CollisionJNI.btMinkowskiSumShape_getTransformA(swigCPtr, this); 75 } 76 GetTransformB()77 public Matrix4 GetTransformB() { 78 return CollisionJNI.btMinkowskiSumShape_GetTransformB(swigCPtr, this); 79 } 80 getShapeA()81 public btConvexShape getShapeA() { 82 long cPtr = CollisionJNI.btMinkowskiSumShape_getShapeA(swigCPtr, this); 83 return (cPtr == 0) ? null : new btConvexShape(cPtr, false); 84 } 85 getShapeB()86 public btConvexShape getShapeB() { 87 long cPtr = CollisionJNI.btMinkowskiSumShape_getShapeB(swigCPtr, this); 88 return (cPtr == 0) ? null : new btConvexShape(cPtr, false); 89 } 90 91 } 92