// Path: gdx-bullet-gwt/src/com/badlogic/gdx/physics/bullet/gwt/emu/com/badlogic/gdx/physics/bullet/BulletBase.java
// public class BulletBase implements Disposable
// {
// 	public JavaScriptObject jsObject; // public to be able to easily access in js code.
// 	boolean disposed;
// 
// 	@Override
// 	public void dispose()
// 	{
// 		disposed = true;
// 		if(jsObject != null)
// 			internaldispose();
// 		jsObject = null;
// 	}
// 
// 	private native void internaldispose() /*-{
// 		var bulletBase = this.@com.badlogic.gdx.physics.bullet.BulletBase::jsObject;
// 		$wnd.Ammo.destroy(bulletBase);
// 	}-*/;
// 
// 	public boolean isDisposed()
// 	{
// 		return disposed;
// 	}
// 	
// 	/** Obtains a reference to this object, call release to free the reference. */
// 	public void obtain() {
// 	}
// 	
// 	/** Release a previously obtained reference, causing the object to be disposed when this was the last reference. */
// 	public void release() {
// 	}
// 	
// 	/** @return Whether this instance is obtained using the {@link #obtain()} method. */
// 	public boolean isObtained() {
// 		return false;
// 	}
// 	
// 	protected void construct() {
// 	}
// 	
// 	public void takeOwnership() {
// 	}
// }
// 
// Path: gdx-bullet-gwt/src/com/badlogic/gdx/physics/bullet/gwt/emu/com/badlogic/gdx/physics/bullet/collision/btBroadphaseInterface.java
// public class btBroadphaseInterface extends BulletBase
// {
// 	
// 	public native btOverlappingPairCache getOverlappingPairCache() /*-{
// 		var bpInterfaceJS = this.@com.badlogic.gdx.physics.bullet.BulletBase::jsObject;
// 		var pairCacheJS = bpInterfaceJS.getOverlappingPairCache();
// 		var pairCache = @com.badlogic.gdx.physics.bullet.Bullet::TMP_btOverlappingPairCache_1;
// 		pairCache.@com.badlogic.gdx.physics.bullet.BulletBase::jsObject = pairCacheJS;
// 		return pairCache;
// 	}-*/;
// }
// 
// Path: gdx-bullet-gwt/src/com/badlogic/gdx/physics/bullet/gwt/emu/com/badlogic/gdx/physics/bullet/collision/btDispatcher.java
// public class btDispatcher extends BulletBase
// {
// 	public btPersistentManifold manifold = new btPersistentManifold();
// 
// 	public native int getNumManifolds() /*-{
// 		var dispacher = this.@com.badlogic.gdx.physics.bullet.BulletBase::jsObject;
// 		return dispacher.getNumManifolds();
// 	}-*/;
// 
// 	public btPersistentManifold getManifoldByIndexInternal(int index)
// 	{
// 		//		long cPtr = CollisionJNI.btDispatcher_getManifoldByIndexInternal(swigCPtr, this, index);
// 		//		return (cPtr == 0) ? null : new btPersistentManifold(cPtr, false);
// 		
// 		manifold.jsObject = getManifoldByIndexInternall(index);
// 		return manifold;
// 	}
// 
// 	private native JavaScriptObject getManifoldByIndexInternall(int index) /*-{
// 		var dispacher = this.@com.badlogic.gdx.physics.bullet.BulletBase::jsObject;
// 		return dispacher.getManifoldByIndexInternal(index);
// 	}-*/;
// }


import com.badlogic.gdx.physics.bullet.BulletBase;
import com.badlogic.gdx.physics.bullet.collision.btBroadphaseInterface;
import com.badlogic.gdx.physics.bullet.collision.btDispatcher;
import com.google.gwt.core.client.JavaScriptObject;

package com.badlogic.gdx.physics.bullet.softbody;


public class btSoftBodyWorldInfo extends BulletBase
{
	public btSoftBodyWorldInfo()
	{
		jsObject = createObj();
	}

	private native JavaScriptObject createObj() /*-{
		var obj = new $wnd.Ammo.btSoftBodyWorldInfo();
		obj.javaObject = this;
		return obj;
	}-*/;

	

// Path: gdx-bullet-gwt/src/com/badlogic/gdx/physics/bullet/gwt/emu/com/badlogic/gdx/physics/bullet/BulletBase.java
// public class BulletBase implements Disposable
// {
// 	public JavaScriptObject jsObject; // public to be able to easily access in js code.
// 	boolean disposed;
// 
// 	@Override
// 	public void dispose()
// 	{
// 		disposed = true;
// 		if(jsObject != null)
// 			internaldispose();
// 		jsObject = null;
// 	}
// 
// 	private native void internaldispose() /*-{
// 		var bulletBase = this.@com.badlogic.gdx.physics.bullet.BulletBase::jsObject;
// 		$wnd.Ammo.destroy(bulletBase);
// 	}-*/;
// 
// 	public boolean isDisposed()
// 	{
// 		return disposed;
// 	}
// 	
// 	/** Obtains a reference to this object, call release to free the reference. */
// 	public void obtain() {
// 	}
// 	
// 	/** Release a previously obtained reference, causing the object to be disposed when this was the last reference. */
// 	public void release() {
// 	}
// 	
// 	/** @return Whether this instance is obtained using the {@link #obtain()} method. */
// 	public boolean isObtained() {
// 		return false;
// 	}
// 	
// 	protected void construct() {
// 	}
// 	
// 	public void takeOwnership() {
// 	}
// }
// 
// Path: gdx-bullet-gwt/src/com/badlogic/gdx/physics/bullet/gwt/emu/com/badlogic/gdx/physics/bullet/collision/btBroadphaseInterface.java
// public class btBroadphaseInterface extends BulletBase
// {
// 	
// 	public native btOverlappingPairCache getOverlappingPairCache() /*-{
// 		var bpInterfaceJS = this.@com.badlogic.gdx.physics.bullet.BulletBase::jsObject;
// 		var pairCacheJS = bpInterfaceJS.getOverlappingPairCache();
// 		var pairCache = @com.badlogic.gdx.physics.bullet.Bullet::TMP_btOverlappingPairCache_1;
// 		pairCache.@com.badlogic.gdx.physics.bullet.BulletBase::jsObject = pairCacheJS;
// 		return pairCache;
// 	}-*/;
// }
// 
// Path: gdx-bullet-gwt/src/com/badlogic/gdx/physics/bullet/gwt/emu/com/badlogic/gdx/physics/bullet/collision/btDispatcher.java
// public class btDispatcher extends BulletBase
// {
// 	public btPersistentManifold manifold = new btPersistentManifold();
// 
// 	public native int getNumManifolds() /*-{
// 		var dispacher = this.@com.badlogic.gdx.physics.bullet.BulletBase::jsObject;
// 		return dispacher.getNumManifolds();
// 	}-*/;
// 
// 	public btPersistentManifold getManifoldByIndexInternal(int index)
// 	{
// 		//		long cPtr = CollisionJNI.btDispatcher_getManifoldByIndexInternal(swigCPtr, this, index);
// 		//		return (cPtr == 0) ? null : new btPersistentManifold(cPtr, false);
// 		
// 		manifold.jsObject = getManifoldByIndexInternall(index);
// 		return manifold;
// 	}
// 
// 	private native JavaScriptObject getManifoldByIndexInternall(int index) /*-{
// 		var dispacher = this.@com.badlogic.gdx.physics.bullet.BulletBase::jsObject;
// 		return dispacher.getManifoldByIndexInternal(index);
// 	}-*/;
// }


// Path: gdx-bullet-gwt/src/com/badlogic/gdx/physics/bullet/gwt/emu/com/badlogic/gdx/physics/bullet/softbody/btSoftBodyWorldInfo.java
import com.badlogic.gdx.physics.bullet.BulletBase;
import com.badlogic.gdx.physics.bullet.collision.btBroadphaseInterface;
import com.badlogic.gdx.physics.bullet.collision.btDispatcher;
import com.google.gwt.core.client.JavaScriptObject;

package com.badlogic.gdx.physics.bullet.softbody;


public class btSoftBodyWorldInfo extends BulletBase
{
	public btSoftBodyWorldInfo()
	{
		jsObject = createObj();
	}

	private native JavaScriptObject createObj() /*-{
		var obj = new $wnd.Ammo.btSoftBodyWorldInfo();
		obj.javaObject = this;
		return obj;
	}-*/;

	

	public native void setBroadphase(btBroadphaseInterface value) /*-{
