Example #1
0
 private btRigidBody(boolean dummy, btRigidBody.btRigidBodyConstructionInfo constructionInfo) {
   this(
       DynamicsJNI.new_btRigidBody__SWIG_0(
           dummy,
           btRigidBody.btRigidBodyConstructionInfo.getCPtr(constructionInfo),
           constructionInfo),
       true);
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       DynamicsJNI.delete_btGeneric6DofConstraintData(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
Example #3
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       DynamicsJNI.delete_btRigidBody_btRigidBodyConstructionInfo(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       DynamicsJNI.delete_btAngularLimit(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
Example #5
0
 private btRigidBody(
     boolean dummy, float mass, btMotionState motionState, btCollisionShape collisionShape) {
   this(
       DynamicsJNI.new_btRigidBody__SWIG_2(
           dummy,
           mass,
           btMotionState.getCPtr(motionState),
           motionState,
           btCollisionShape.getCPtr(collisionShape),
           collisionShape),
       true);
 }
Example #6
0
 private btRigidBodyConstructionInfo(
     boolean dummy,
     float mass,
     btMotionState motionState,
     btCollisionShape collisionShape,
     Vector3 localInertia) {
   this(
       DynamicsJNI.new_btRigidBody_btRigidBodyConstructionInfo__SWIG_0(
           dummy,
           mass,
           btMotionState.getCPtr(motionState),
           motionState,
           btCollisionShape.getCPtr(collisionShape),
           collisionShape,
           localInertia),
       true);
 }
 public void setAngularLowerLimit(btVector3FloatData value) {
   DynamicsJNI.btGeneric6DofConstraintData_angularLowerLimit_set(
       swigCPtr, this, btVector3FloatData.getCPtr(value), value);
 }
 public String getPadding3() {
   return DynamicsJNI.btGeneric6DofSpring2ConstraintData_padding3_get(swigCPtr, this);
 }
 public void setLinearUpperLimit(btVector3FloatData value) {
   DynamicsJNI.btGeneric6DofConstraintData_linearUpperLimit_set(
       swigCPtr, this, btVector3FloatData.getCPtr(value), value);
 }
 public btGeneric6DofConstraintData() {
   this(DynamicsJNI.new_btGeneric6DofConstraintData(), true);
 }
 public void setUseOffsetForConstraintFrame(int value) {
   DynamicsJNI.btGeneric6DofConstraintData_useOffsetForConstraintFrame_set(swigCPtr, this, value);
 }
 public String getAngularServoMotor() {
   return DynamicsJNI.btGeneric6DofSpring2ConstraintData_angularServoMotor_get(swigCPtr, this);
 }
 public void setAngularServoMotor(String value) {
   DynamicsJNI.btGeneric6DofSpring2ConstraintData_angularServoMotor_set(swigCPtr, this, value);
 }
 public btVector3FloatData getAngularEquilibriumPoint() {
   long cPtr =
       DynamicsJNI.btGeneric6DofSpring2ConstraintData_angularEquilibriumPoint_get(swigCPtr, this);
   return (cPtr == 0) ? null : new btVector3FloatData(cPtr, false);
 }
 public void setAngularEquilibriumPoint(btVector3FloatData value) {
   DynamicsJNI.btGeneric6DofSpring2ConstraintData_angularEquilibriumPoint_set(
       swigCPtr, this, btVector3FloatData.getCPtr(value), value);
 }
 public void setAngularSpringDamping(btVector3FloatData value) {
   DynamicsJNI.btGeneric6DofSpring2ConstraintData_angularSpringDamping_set(
       swigCPtr, this, btVector3FloatData.getCPtr(value), value);
 }
 public btVector3FloatData getAngularMaxMotorForce() {
   long cPtr =
       DynamicsJNI.btGeneric6DofSpring2ConstraintData_angularMaxMotorForce_get(swigCPtr, this);
   return (cPtr == 0) ? null : new btVector3FloatData(cPtr, false);
 }
 public void setUseLinearReferenceFrameA(int value) {
   DynamicsJNI.btGeneric6DofConstraintData_useLinearReferenceFrameA_set(swigCPtr, this, value);
 }
 public int getUseLinearReferenceFrameA() {
   return DynamicsJNI.btGeneric6DofConstraintData_useLinearReferenceFrameA_get(swigCPtr, this);
 }
 public void setAngularEnableSpring(String value) {
   DynamicsJNI.btGeneric6DofSpring2ConstraintData_angularEnableSpring_set(swigCPtr, this, value);
 }
 public int getUseOffsetForConstraintFrame() {
   return DynamicsJNI.btGeneric6DofConstraintData_useOffsetForConstraintFrame_get(swigCPtr, this);
 }
 public void setTypeConstraintData(btTypedConstraintData value) {
   DynamicsJNI.btGeneric6DofConstraintData_typeConstraintData_set(
       swigCPtr, this, btTypedConstraintData.getCPtr(value), value);
 }
 public String getAngularEnableSpring() {
   return DynamicsJNI.btGeneric6DofSpring2ConstraintData_angularEnableSpring_get(swigCPtr, this);
 }
 public void setRbBFrame(btTransformFloatData value) {
   DynamicsJNI.btGeneric6DofConstraintData_rbBFrame_set(
       swigCPtr, this, btTransformFloatData.getCPtr(value), value);
 }
 public btTypedConstraintData getTypeConstraintData() {
   long cPtr = DynamicsJNI.btGeneric6DofConstraintData_typeConstraintData_get(swigCPtr, this);
   return (cPtr == 0) ? null : new btTypedConstraintData(cPtr, false);
 }
 public void setRotateOrder(int value) {
   DynamicsJNI.btGeneric6DofSpring2ConstraintData_rotateOrder_set(swigCPtr, this, value);
 }
 public btTransformFloatData getRbBFrame() {
   long cPtr = DynamicsJNI.btGeneric6DofConstraintData_rbBFrame_get(swigCPtr, this);
   return (cPtr == 0) ? null : new btTransformFloatData(cPtr, false);
 }
 public int getRotateOrder() {
   return DynamicsJNI.btGeneric6DofSpring2ConstraintData_rotateOrder_get(swigCPtr, this);
 }
 public btVector3FloatData getLinearUpperLimit() {
   long cPtr = DynamicsJNI.btGeneric6DofConstraintData_linearUpperLimit_get(swigCPtr, this);
   return (cPtr == 0) ? null : new btVector3FloatData(cPtr, false);
 }
 public void setPadding3(String value) {
   DynamicsJNI.btGeneric6DofSpring2ConstraintData_padding3_set(swigCPtr, this, value);
 }