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 LocalConvexResult extends BulletBase {
\r
17 private long swigCPtr;
\r
19 protected LocalConvexResult(final String className, long cPtr, boolean cMemoryOwn) {
\r
20 super(className, cPtr, cMemoryOwn);
\r
24 protected LocalConvexResult(long cPtr, boolean cMemoryOwn) {
\r
25 this("LocalConvexResult", cPtr, cMemoryOwn);
\r
29 public static long getCPtr(LocalConvexResult obj) {
\r
30 return (obj == null) ? 0 : obj.swigCPtr;
\r
34 protected void finalize() throws Throwable {
\r
40 @Override protected synchronized void delete() {
\r
41 if (swigCPtr != 0) {
\r
43 swigCMemOwn = false;
\r
44 gdxBulletJNI.delete_LocalConvexResult(swigCPtr);
\r
51 public LocalConvexResult(btCollisionObject hitCollisionObject, LocalShapeInfo localShapeInfo, Vector3 hitNormalLocal, Vector3 hitPointLocal, float hitFraction) {
\r
52 this(gdxBulletJNI.new_LocalConvexResult(btCollisionObject.getCPtr(hitCollisionObject), hitCollisionObject, LocalShapeInfo.getCPtr(localShapeInfo), localShapeInfo, hitNormalLocal, hitPointLocal, hitFraction), true);
\r
55 public void setHitCollisionObject(btCollisionObject value) {
\r
56 gdxBulletJNI.LocalConvexResult_hitCollisionObject_set(swigCPtr, this, btCollisionObject.getCPtr(value), value);
\r
59 public btCollisionObject getHitCollisionObject() {
\r
60 return btCollisionObject.getInstance(gdxBulletJNI.LocalConvexResult_hitCollisionObject_get(swigCPtr, this), false);
\r
63 public void setLocalShapeInfo(LocalShapeInfo value) {
\r
64 gdxBulletJNI.LocalConvexResult_localShapeInfo_set(swigCPtr, this, LocalShapeInfo.getCPtr(value), value);
\r
67 public LocalShapeInfo getLocalShapeInfo() {
\r
68 long cPtr = gdxBulletJNI.LocalConvexResult_localShapeInfo_get(swigCPtr, this);
\r
69 return (cPtr == 0) ? null : new LocalShapeInfo(cPtr, false);
\r
72 public void setHitNormalLocal(btVector3 value) {
\r
73 gdxBulletJNI.LocalConvexResult_hitNormalLocal_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
76 public btVector3 getHitNormalLocal() {
\r
77 long cPtr = gdxBulletJNI.LocalConvexResult_hitNormalLocal_get(swigCPtr, this);
\r
78 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
81 public void setHitPointLocal(btVector3 value) {
\r
82 gdxBulletJNI.LocalConvexResult_hitPointLocal_set(swigCPtr, this, btVector3.getCPtr(value), value);
\r
85 public btVector3 getHitPointLocal() {
\r
86 long cPtr = gdxBulletJNI.LocalConvexResult_hitPointLocal_get(swigCPtr, this);
\r
87 return (cPtr == 0) ? null : new btVector3(cPtr, false);
\r
90 public void setHitFraction(float value) {
\r
91 gdxBulletJNI.LocalConvexResult_hitFraction_set(swigCPtr, this, value);
\r
94 public float getHitFraction() {
\r
95 return gdxBulletJNI.LocalConvexResult_hitFraction_get(swigCPtr, this);
\r