Home | History | Annotate | Download | only in dynamics
      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 btJointFeedback extends BulletBase {
     20 	private long swigCPtr;
     21 
     22 	protected btJointFeedback(final String className, long cPtr, boolean cMemoryOwn) {
     23 		super(className, cPtr, cMemoryOwn);
     24 		swigCPtr = cPtr;
     25 	}
     26 
     27 	/** Construct a new btJointFeedback, normally you should not need this constructor it's intended for low-level usage. */
     28 	public btJointFeedback(long cPtr, boolean cMemoryOwn) {
     29 		this("btJointFeedback", cPtr, cMemoryOwn);
     30 		construct();
     31 	}
     32 
     33 	@Override
     34 	protected void reset(long cPtr, boolean cMemoryOwn) {
     35 		if (!destroyed)
     36 			destroy();
     37 		super.reset(swigCPtr = cPtr, cMemoryOwn);
     38 	}
     39 
     40 	public static long getCPtr(btJointFeedback obj) {
     41 		return (obj == null) ? 0 : obj.swigCPtr;
     42 	}
     43 
     44 	@Override
     45 	protected void finalize() throws Throwable {
     46 		if (!destroyed)
     47 			destroy();
     48 		super.finalize();
     49 	}
     50 
     51   @Override protected synchronized void delete() {
     52 		if (swigCPtr != 0) {
     53 			if (swigCMemOwn) {
     54 				swigCMemOwn = false;
     55 				DynamicsJNI.delete_btJointFeedback(swigCPtr);
     56 			}
     57 			swigCPtr = 0;
     58 		}
     59 		super.delete();
     60 	}
     61 
     62   public void setAppliedForceBodyA(btVector3 value) {
     63     DynamicsJNI.btJointFeedback_appliedForceBodyA_set(swigCPtr, this, btVector3.getCPtr(value), value);
     64   }
     65 
     66   public btVector3 getAppliedForceBodyA() {
     67     long cPtr = DynamicsJNI.btJointFeedback_appliedForceBodyA_get(swigCPtr, this);
     68     return (cPtr == 0) ? null : new btVector3(cPtr, false);
     69   }
     70 
     71   public void setAppliedTorqueBodyA(btVector3 value) {
     72     DynamicsJNI.btJointFeedback_appliedTorqueBodyA_set(swigCPtr, this, btVector3.getCPtr(value), value);
     73   }
     74 
     75   public btVector3 getAppliedTorqueBodyA() {
     76     long cPtr = DynamicsJNI.btJointFeedback_appliedTorqueBodyA_get(swigCPtr, this);
     77     return (cPtr == 0) ? null : new btVector3(cPtr, false);
     78   }
     79 
     80   public void setAppliedForceBodyB(btVector3 value) {
     81     DynamicsJNI.btJointFeedback_appliedForceBodyB_set(swigCPtr, this, btVector3.getCPtr(value), value);
     82   }
     83 
     84   public btVector3 getAppliedForceBodyB() {
     85     long cPtr = DynamicsJNI.btJointFeedback_appliedForceBodyB_get(swigCPtr, this);
     86     return (cPtr == 0) ? null : new btVector3(cPtr, false);
     87   }
     88 
     89   public void setAppliedTorqueBodyB(btVector3 value) {
     90     DynamicsJNI.btJointFeedback_appliedTorqueBodyB_set(swigCPtr, this, btVector3.getCPtr(value), value);
     91   }
     92 
     93   public btVector3 getAppliedTorqueBodyB() {
     94     long cPtr = DynamicsJNI.btJointFeedback_appliedTorqueBodyB_get(swigCPtr, this);
     95     return (cPtr == 0) ? null : new btVector3(cPtr, false);
     96   }
     97 
     98   public btJointFeedback() {
     99     this(DynamicsJNI.new_btJointFeedback(), true);
    100   }
    101 
    102 }
    103