com.badlogic.gdx.physics.bullet.collision.btManifoldPoint 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;
import com.badlogic.gdx.physics.bullet.linearmath.btVector3;
import com.badlogic.gdx.math.Vector3;
/**
* @author xpenatan
*/
public class btManifoldPoint extends BulletBase {
public static btManifoldPoint WRAPPER_GEN_01 = new btManifoldPoint(false);
public btManifoldPoint(boolean cMemoryOwn) {
}
public btManifoldPoint() {
}
public Vector3 getPositionWorldOnA() {
int pointer = getPositionWorldOnANATIVE((int) cPointer);
btVector3.WRAPPER_GEN_01.setPointer(pointer);
btVector3.convert(btVector3.WRAPPER_GEN_01, btVector3.TEMP_GDX_01);
return btVector3.TEMP_GDX_01;
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btManifoldPoint);var returnedJSObj = jsObj.getPositionWorldOnA();return Bullet.getPointer(returnedJSObj);")
private static native int getPositionWorldOnANATIVE(int addr);
public Vector3 getPositionWorldOnB() {
int pointer = getPositionWorldOnBNATIVE((int) cPointer);
btVector3.WRAPPER_GEN_01.setPointer(pointer);
btVector3.convert(btVector3.WRAPPER_GEN_01, btVector3.TEMP_GDX_01);
return btVector3.TEMP_GDX_01;
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btManifoldPoint);var returnedJSObj = jsObj.getPositionWorldOnB();return Bullet.getPointer(returnedJSObj);")
private static native int getPositionWorldOnBNATIVE(int addr);
public float getAppliedImpulse() {
return getAppliedImpulseNATIVE((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btManifoldPoint);var returnedJSObj = jsObj.getAppliedImpulse();return returnedJSObj;")
private static native float getAppliedImpulseNATIVE(int addr);
public float getDistance() {
return getDistanceNATIVE((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btManifoldPoint);var returnedJSObj = jsObj.getDistance();return returnedJSObj;")
private static native float getDistanceNATIVE(int addr);
public int getLifeTime() {
return getLifeTimeNATIVE((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btManifoldPoint);var returnedJSObj = jsObj.getLifeTime();return returnedJSObj;")
private static native int getLifeTimeNATIVE(int addr);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy