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.dynamics; 10 11 import com.badlogic.gdx.physics.bullet.BulletBase; 12 import com.badlogic.gdx.physics.bullet.linearmath.*; 13 import com.badlogic.gdx.physics.bullet.collision.*; 14 import com.badlogic.gdx.math.Vector3; 15 import com.badlogic.gdx.math.Quaternion; 16 import com.badlogic.gdx.math.Matrix3; 17 import com.badlogic.gdx.math.Matrix4; 18 19 public class btContactConstraint extends btTypedConstraint { 20 private long swigCPtr; 21 btContactConstraint(final String className, long cPtr, boolean cMemoryOwn)22 protected btContactConstraint(final String className, long cPtr, boolean cMemoryOwn) { 23 super(className, DynamicsJNI.btContactConstraint_SWIGUpcast(cPtr), cMemoryOwn); 24 swigCPtr = cPtr; 25 } 26 27 /** Construct a new btContactConstraint, normally you should not need this constructor it's intended for low-level usage. */ btContactConstraint(long cPtr, boolean cMemoryOwn)28 public btContactConstraint(long cPtr, boolean cMemoryOwn) { 29 this("btContactConstraint", cPtr, cMemoryOwn); 30 construct(); 31 } 32 33 @Override reset(long cPtr, boolean cMemoryOwn)34 protected void reset(long cPtr, boolean cMemoryOwn) { 35 if (!destroyed) 36 destroy(); 37 super.reset(DynamicsJNI.btContactConstraint_SWIGUpcast(swigCPtr = cPtr), cMemoryOwn); 38 } 39 getCPtr(btContactConstraint obj)40 public static long getCPtr(btContactConstraint obj) { 41 return (obj == null) ? 0 : obj.swigCPtr; 42 } 43 44 @Override finalize()45 protected void finalize() throws Throwable { 46 if (!destroyed) 47 destroy(); 48 super.finalize(); 49 } 50 delete()51 @Override protected synchronized void delete() { 52 if (swigCPtr != 0) { 53 if (swigCMemOwn) { 54 swigCMemOwn = false; 55 DynamicsJNI.delete_btContactConstraint(swigCPtr); 56 } 57 swigCPtr = 0; 58 } 59 super.delete(); 60 } 61 setContactManifold(btPersistentManifold contactManifold)62 public void setContactManifold(btPersistentManifold contactManifold) { 63 DynamicsJNI.btContactConstraint_setContactManifold(swigCPtr, this, btPersistentManifold.getCPtr(contactManifold), contactManifold); 64 } 65 getContactManifold()66 public btPersistentManifold getContactManifold() { 67 long cPtr = DynamicsJNI.btContactConstraint_getContactManifold__SWIG_0(swigCPtr, this); 68 return (cPtr == 0) ? null : new btPersistentManifold(cPtr, false); 69 } 70 71 } 72