• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 3.0.8
4  *
5  * Do not make changes to this file unless you know what you are doing--modify
6  * the SWIG interface file instead.
7  * ----------------------------------------------------------------------------- */
8 
9 package com.badlogic.gdx.physics.bullet.dynamics;
10 
11 import com.badlogic.gdx.physics.bullet.BulletBase;
12 import com.badlogic.gdx.physics.bullet.linearmath.*;
13 import com.badlogic.gdx.physics.bullet.collision.*;
14 import com.badlogic.gdx.math.Vector3;
15 import com.badlogic.gdx.math.Quaternion;
16 import com.badlogic.gdx.math.Matrix3;
17 import com.badlogic.gdx.math.Matrix4;
18 
19 public class btActionInterface extends BulletBase {
20 	private long swigCPtr;
21 
btActionInterface(final String className, long cPtr, boolean cMemoryOwn)22 	protected btActionInterface(final String className, long cPtr, boolean cMemoryOwn) {
23 		super(className, cPtr, cMemoryOwn);
24 		swigCPtr = cPtr;
25 	}
26 
27 	/** Construct a new btActionInterface, normally you should not need this constructor it's intended for low-level usage. */
btActionInterface(long cPtr, boolean cMemoryOwn)28 	public btActionInterface(long cPtr, boolean cMemoryOwn) {
29 		this("btActionInterface", cPtr, cMemoryOwn);
30 		construct();
31 	}
32 
33 	@Override
reset(long cPtr, boolean cMemoryOwn)34 	protected void reset(long cPtr, boolean cMemoryOwn) {
35 		if (!destroyed)
36 			destroy();
37 		super.reset(swigCPtr = cPtr, cMemoryOwn);
38 	}
39 
getCPtr(btActionInterface obj)40 	public static long getCPtr(btActionInterface obj) {
41 		return (obj == null) ? 0 : obj.swigCPtr;
42 	}
43 
44 	@Override
finalize()45 	protected void finalize() throws Throwable {
46 		if (!destroyed)
47 			destroy();
48 		super.finalize();
49 	}
50 
delete()51   @Override protected synchronized void delete() {
52 		if (swigCPtr != 0) {
53 			if (swigCMemOwn) {
54 				swigCMemOwn = false;
55 				DynamicsJNI.delete_btActionInterface(swigCPtr);
56 			}
57 			swigCPtr = 0;
58 		}
59 		super.delete();
60 	}
61 
updateAction(btCollisionWorld collisionWorld, float deltaTimeStep)62   public void updateAction(btCollisionWorld collisionWorld, float deltaTimeStep) {
63     DynamicsJNI.btActionInterface_updateAction(swigCPtr, this, btCollisionWorld.getCPtr(collisionWorld), collisionWorld, deltaTimeStep);
64   }
65 
debugDraw(btIDebugDraw debugDrawer)66   public void debugDraw(btIDebugDraw debugDrawer) {
67     DynamicsJNI.btActionInterface_debugDraw(swigCPtr, this, btIDebugDraw.getCPtr(debugDrawer), debugDrawer);
68   }
69 
70 }
71