OSDN Git Service

swig generated java files
[mikumikustudio/libgdx-mikumikustudio.git] / extensions / gdx-bullet / jni / swig-src / com / badlogic / gdx / physics / bullet / SphereTriangleDetector.java
1 /* ----------------------------------------------------------------------------\r
2  * This file was automatically generated by SWIG (http://www.swig.org).\r
3  * Version 2.0.10\r
4  *\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
8 \r
9 package com.badlogic.gdx.physics.bullet;\r
10 \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
15 \r
16 public class SphereTriangleDetector extends BulletBase {\r
17         private long swigCPtr;\r
18         \r
19         protected SphereTriangleDetector(final String className, long cPtr, boolean cMemoryOwn) {\r
20                 super(className, cPtr, cMemoryOwn);\r
21                 swigCPtr = cPtr;\r
22         }\r
23         \r
24         protected SphereTriangleDetector(long cPtr, boolean cMemoryOwn) {\r
25                 this("SphereTriangleDetector", cPtr, cMemoryOwn);\r
26                 construct();\r
27         }\r
28         \r
29         @Override\r
30         protected void reset(long cPtr, boolean cMemoryOwn) {\r
31                 if (!destroyed)\r
32                         destroy();\r
33                 super.reset(swigCPtr = cPtr, cMemoryOwn);\r
34         }\r
35         \r
36         public static long getCPtr(SphereTriangleDetector obj) {\r
37                 return (obj == null) ? 0 : obj.swigCPtr;\r
38         }\r
39 \r
40         @Override\r
41         protected void finalize() throws Throwable {\r
42                 if (!destroyed)\r
43                         destroy();\r
44                 super.finalize();\r
45         }\r
46 \r
47   @Override protected synchronized void delete() {\r
48                 if (swigCPtr != 0) {\r
49                         if (swigCMemOwn) {\r
50                                 swigCMemOwn = false;\r
51                                 gdxBulletJNI.delete_SphereTriangleDetector(swigCPtr);\r
52                         }\r
53                         swigCPtr = 0;\r
54                 }\r
55                 super.delete();\r
56         }\r
57 \r
58   public void getClosestPoints(ClosestPointInput input, Result output, btIDebugDraw debugDraw, boolean swapResults) {\r
59     gdxBulletJNI.SphereTriangleDetector_getClosestPoints__SWIG_0(swigCPtr, this, ClosestPointInput.getCPtr(input), input, Result.getCPtr(output), output, btIDebugDraw.getCPtr(debugDraw), debugDraw, swapResults);\r
60   }\r
61 \r
62   public void getClosestPoints(ClosestPointInput input, Result output, btIDebugDraw debugDraw) {\r
63     gdxBulletJNI.SphereTriangleDetector_getClosestPoints__SWIG_1(swigCPtr, this, ClosestPointInput.getCPtr(input), input, Result.getCPtr(output), output, btIDebugDraw.getCPtr(debugDraw), debugDraw);\r
64   }\r
65 \r
66   public SphereTriangleDetector(btSphereShape sphere, btTriangleShape triangle, float contactBreakingThreshold) {\r
67     this(gdxBulletJNI.new_SphereTriangleDetector(btSphereShape.getCPtr(sphere), sphere, btTriangleShape.getCPtr(triangle), triangle, contactBreakingThreshold), true);\r
68   }\r
69 \r
70   public boolean collide(Vector3 sphereCenter, Vector3 point, Vector3 resultNormal, SWIGTYPE_p_float depth, SWIGTYPE_p_float timeOfImpact, float contactBreakingThreshold) {\r
71     return gdxBulletJNI.SphereTriangleDetector_collide(swigCPtr, this, sphereCenter, point, resultNormal, SWIGTYPE_p_float.getCPtr(depth), SWIGTYPE_p_float.getCPtr(timeOfImpact), contactBreakingThreshold);\r
72   }\r
73 \r
74 }\r