com.badlogic.gdx.physics.bullet.dynamics.btConeTwistConstraintDoubleData Maven / Gradle / Ivy
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.11
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.badlogic.gdx.physics.bullet.dynamics;
import com.badlogic.gdx.physics.bullet.BulletBase;
import com.badlogic.gdx.physics.bullet.linearmath.*;
import com.badlogic.gdx.physics.bullet.collision.*;
public class btConeTwistConstraintDoubleData extends BulletBase {
private long swigCPtr;
protected btConeTwistConstraintDoubleData (final String className, long cPtr, boolean cMemoryOwn) {
super(className, cPtr, cMemoryOwn);
swigCPtr = cPtr;
}
/** Construct a new btConeTwistConstraintDoubleData, normally you should not need this constructor it's intended for low-level
* usage. */
public btConeTwistConstraintDoubleData (long cPtr, boolean cMemoryOwn) {
this("btConeTwistConstraintDoubleData", cPtr, cMemoryOwn);
construct();
}
@Override
protected void reset (long cPtr, boolean cMemoryOwn) {
if (!destroyed) destroy();
super.reset(swigCPtr = cPtr, cMemoryOwn);
}
public static long getCPtr (btConeTwistConstraintDoubleData obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
@Override
protected void finalize () throws Throwable {
if (!destroyed) destroy();
super.finalize();
}
@Override
protected synchronized void delete () {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
DynamicsJNI.delete_btConeTwistConstraintDoubleData(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public void setTypeConstraintData (btTypedConstraintDoubleData value) {
DynamicsJNI.btConeTwistConstraintDoubleData_typeConstraintData_set(swigCPtr, this,
btTypedConstraintDoubleData.getCPtr(value), value);
}
public btTypedConstraintDoubleData getTypeConstraintData () {
long cPtr = DynamicsJNI.btConeTwistConstraintDoubleData_typeConstraintData_get(swigCPtr, this);
return (cPtr == 0) ? null : new btTypedConstraintDoubleData(cPtr, false);
}
public void setRbAFrame (btTransformDoubleData value) {
DynamicsJNI.btConeTwistConstraintDoubleData_rbAFrame_set(swigCPtr, this, btTransformDoubleData.getCPtr(value), value);
}
public btTransformDoubleData getRbAFrame () {
long cPtr = DynamicsJNI.btConeTwistConstraintDoubleData_rbAFrame_get(swigCPtr, this);
return (cPtr == 0) ? null : new btTransformDoubleData(cPtr, false);
}
public void setRbBFrame (btTransformDoubleData value) {
DynamicsJNI.btConeTwistConstraintDoubleData_rbBFrame_set(swigCPtr, this, btTransformDoubleData.getCPtr(value), value);
}
public btTransformDoubleData getRbBFrame () {
long cPtr = DynamicsJNI.btConeTwistConstraintDoubleData_rbBFrame_get(swigCPtr, this);
return (cPtr == 0) ? null : new btTransformDoubleData(cPtr, false);
}
public void setSwingSpan1 (double value) {
DynamicsJNI.btConeTwistConstraintDoubleData_swingSpan1_set(swigCPtr, this, value);
}
public double getSwingSpan1 () {
return DynamicsJNI.btConeTwistConstraintDoubleData_swingSpan1_get(swigCPtr, this);
}
public void setSwingSpan2 (double value) {
DynamicsJNI.btConeTwistConstraintDoubleData_swingSpan2_set(swigCPtr, this, value);
}
public double getSwingSpan2 () {
return DynamicsJNI.btConeTwistConstraintDoubleData_swingSpan2_get(swigCPtr, this);
}
public void setTwistSpan (double value) {
DynamicsJNI.btConeTwistConstraintDoubleData_twistSpan_set(swigCPtr, this, value);
}
public double getTwistSpan () {
return DynamicsJNI.btConeTwistConstraintDoubleData_twistSpan_get(swigCPtr, this);
}
public void setLimitSoftness (double value) {
DynamicsJNI.btConeTwistConstraintDoubleData_limitSoftness_set(swigCPtr, this, value);
}
public double getLimitSoftness () {
return DynamicsJNI.btConeTwistConstraintDoubleData_limitSoftness_get(swigCPtr, this);
}
public void setBiasFactor (double value) {
DynamicsJNI.btConeTwistConstraintDoubleData_biasFactor_set(swigCPtr, this, value);
}
public double getBiasFactor () {
return DynamicsJNI.btConeTwistConstraintDoubleData_biasFactor_get(swigCPtr, this);
}
public void setRelaxationFactor (double value) {
DynamicsJNI.btConeTwistConstraintDoubleData_relaxationFactor_set(swigCPtr, this, value);
}
public double getRelaxationFactor () {
return DynamicsJNI.btConeTwistConstraintDoubleData_relaxationFactor_get(swigCPtr, this);
}
public void setDamping (double value) {
DynamicsJNI.btConeTwistConstraintDoubleData_damping_set(swigCPtr, this, value);
}
public double getDamping () {
return DynamicsJNI.btConeTwistConstraintDoubleData_damping_get(swigCPtr, this);
}
public btConeTwistConstraintDoubleData () {
this(DynamicsJNI.new_btConeTwistConstraintDoubleData(), true);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy