com.badlogic.gdx.physics.bullet.collision.btPersistentManifold Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gdx-bullet-teavm Show documentation
Show all versions of gdx-bullet-teavm Show documentation
Tool to generate libgdx to javascript using teaVM
/*-------------------------------------------------------
* This file was generated by JParser
*
* Do not make changes to this file
*-------------------------------------------------------*/
package com.badlogic.gdx.physics.bullet.collision;
import com.badlogic.gdx.physics.bullet.linearmath.btTypedObject;
/**
* @author xpenatan
*/
public class btPersistentManifold extends btTypedObject {
public static btPersistentManifold WRAPPER_GEN_01 = new btPersistentManifold(false);
public btPersistentManifold(boolean cMemoryOwn) {
}
public btPersistentManifold() {
}
public btCollisionObject getBody0() {
int pointer = getBody0NATIVE((int) cPointer);
btCollisionObject.WRAPPER_GEN_01.setPointer(pointer);
return btCollisionObject.WRAPPER_GEN_01;
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btPersistentManifold);var returnedJSObj = jsObj.getBody0();return Bullet.getPointer(returnedJSObj);")
private static native int getBody0NATIVE(int addr);
public btCollisionObject getBody1() {
int pointer = getBody1NATIVE((int) cPointer);
btCollisionObject.WRAPPER_GEN_01.setPointer(pointer);
return btCollisionObject.WRAPPER_GEN_01;
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btPersistentManifold);var returnedJSObj = jsObj.getBody1();return Bullet.getPointer(returnedJSObj);")
private static native int getBody1NATIVE(int addr);
public int getNumContacts() {
return getNumContactsNATIVE((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btPersistentManifold);var returnedJSObj = jsObj.getNumContacts();return returnedJSObj;")
private static native int getNumContactsNATIVE(int addr);
public btManifoldPoint getContactPoint(int index) {
int pointer = getContactPointNATIVE((int) cPointer, index);
btManifoldPoint.WRAPPER_GEN_01.setPointer(pointer);
return btManifoldPoint.WRAPPER_GEN_01;
}
@org.teavm.jso.JSBody(params = {"addr", "index"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btPersistentManifold);var returnedJSObj = jsObj.getContactPoint(index);return Bullet.getPointer(returnedJSObj);")
private static native int getContactPointNATIVE(int addr, int index);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy