1 /* ----------------------------------------------------------------------------
\r
2 * This file was automatically generated by SWIG (http://www.swig.org).
\r
5 * Do not make changes to this file unless you know what you are doing--modify
\r
6 * the SWIG interface file instead.
\r
7 * ----------------------------------------------------------------------------- */
\r
9 package com.badlogic.gdx.physics.bullet;
\r
11 import com.badlogic.gdx.math.Vector3;
\r
12 import com.badlogic.gdx.math.Quaternion;
\r
13 import com.badlogic.gdx.math.Matrix3;
\r
14 import com.badlogic.gdx.math.Matrix4;
\r
16 public class btCompoundShapeChild extends BulletBase {
\r
17 private long swigCPtr;
\r
19 protected btCompoundShapeChild(final String className, long cPtr, boolean cMemoryOwn) {
\r
20 super(className, cPtr, cMemoryOwn);
\r
24 protected btCompoundShapeChild(long cPtr, boolean cMemoryOwn) {
\r
25 this("btCompoundShapeChild", cPtr, cMemoryOwn);
\r
30 protected void reset(long cPtr, boolean cMemoryOwn) {
\r
33 super.reset(swigCPtr = cPtr, cMemoryOwn);
\r
36 public static long getCPtr(btCompoundShapeChild obj) {
\r
37 return (obj == null) ? 0 : obj.swigCPtr;
\r
41 protected void finalize() throws Throwable {
\r
47 @Override protected synchronized void delete() {
\r
48 if (swigCPtr != 0) {
\r
50 swigCMemOwn = false;
\r
51 gdxBulletJNI.delete_btCompoundShapeChild(swigCPtr);
\r
58 public void setTransform(btTransform value) {
\r
59 gdxBulletJNI.btCompoundShapeChild_transform_set(swigCPtr, this, btTransform.getCPtr(value), value);
\r
62 public btTransform getTransform() {
\r
63 long cPtr = gdxBulletJNI.btCompoundShapeChild_transform_get(swigCPtr, this);
\r
64 return (cPtr == 0) ? null : new btTransform(cPtr, false);
\r
67 public void setChildShape(btCollisionShape value) {
\r
68 gdxBulletJNI.btCompoundShapeChild_childShape_set(swigCPtr, this, btCollisionShape.getCPtr(value), value);
\r
71 public btCollisionShape getChildShape() {
\r
72 long cPtr = gdxBulletJNI.btCompoundShapeChild_childShape_get(swigCPtr, this);
\r
73 return (cPtr == 0) ? null : btCollisionShape.newDerivedObject(cPtr, false);
\r
76 public void setChildShapeType(int value) {
\r
77 gdxBulletJNI.btCompoundShapeChild_childShapeType_set(swigCPtr, this, value);
\r
80 public int getChildShapeType() {
\r
81 return gdxBulletJNI.btCompoundShapeChild_childShapeType_get(swigCPtr, this);
\r
84 public void setChildMargin(float value) {
\r
85 gdxBulletJNI.btCompoundShapeChild_childMargin_set(swigCPtr, this, value);
\r
88 public float getChildMargin() {
\r
89 return gdxBulletJNI.btCompoundShapeChild_childMargin_get(swigCPtr, this);
\r
92 public void setNode(btDbvtNode value) {
\r
93 gdxBulletJNI.btCompoundShapeChild_node_set(swigCPtr, this, btDbvtNode.getCPtr(value), value);
\r
96 public btDbvtNode getNode() {
\r
97 long cPtr = gdxBulletJNI.btCompoundShapeChild_node_get(swigCPtr, this);
\r
98 return (cPtr == 0) ? null : new btDbvtNode(cPtr, false);
\r
101 public btCompoundShapeChild() {
\r
102 this(gdxBulletJNI.new_btCompoundShapeChild(), true);
\r