com.badlogic.gdx.physics.bullet.collision.ContactResultCallback 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.BulletBase;
/**
* @author xpenatan
*/
public class ContactResultCallback extends BulletBase {
public static ContactResultCallback WRAPPER_GEN_01 = new ContactResultCallback(false);
public ContactResultCallback(boolean cMemoryOwn) {
}
public ContactResultCallback() {
}
public float addSingleResult(btManifoldPoint cp, btCollisionObjectWrapper colObj0Wrap, int partId0, int index0, btCollisionObjectWrapper colObj1Wrap, int partId1, int index1) {
return addSingleResultNATIVE((int) cPointer, (int) cp.getCPointer(), (int) colObj0Wrap.getCPointer(), partId0, index0, (int) colObj1Wrap.getCPointer(), partId1, index1);
}
@org.teavm.jso.JSBody(params = {"addr", "cpAddr", "colObj0WrapAddr", "partId0", "index0", "colObj1WrapAddr", "partId1", "index1"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.ContactResultCallback);var returnedJSObj = jsObj.addSingleResult(cpAddr, colObj0WrapAddr, partId0, index0, colObj1WrapAddr, partId1, index1);return returnedJSObj;")
private static native float addSingleResultNATIVE(int addr, int cpAddr, int colObj0WrapAddr, int partId0, int index0, int colObj1WrapAddr, int partId1, int index1);
public boolean needsCollision(btBroadphaseProxy proxy0) {
return needsCollisionNATIVE((int) cPointer, (int) proxy0.getCPointer());
}
@org.teavm.jso.JSBody(params = {"addr", "proxy0Addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.ContactResultCallback);var returnedJSObj = jsObj.needsCollision(proxy0Addr);return returnedJSObj;")
private static native boolean needsCollisionNATIVE(int addr, int proxy0Addr);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy