com.badlogic.gdx.physics.bullet.collision.btCylinderShape 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.math.Vector3;
import com.badlogic.gdx.physics.bullet.linearmath.btVector3;
/**
* @author xpenatan
*/
public class btCylinderShape extends btConvexInternalShape {
public static btCylinderShape WRAPPER_GEN_01 = new btCylinderShape(false);
public btCylinderShape(Vector3 halfExtents) {
btVector3 out = btVector3.TEMP_0;
btVector3.convert(halfExtents, out);
initObject(createNative((int) out.getCPointer()), true);
}
@Override
protected void deleteNative() {
deleteNative((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"halfExtentsAddr"}, script = "var boxHalfExtentsJSObj = Bullet.wrapPointer(halfExtentsAddr, Bullet.btVector3); var jsObj = new Bullet.btCylinderShape(boxHalfExtentsJSObj); return Bullet.getPointer(jsObj);")
private static native int createNative(int halfExtentsAddr);
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCylinderShape); Bullet.destroy(jsObj);")
private static native void deleteNative(int addr);
public btCylinderShape(boolean cMemoryOwn) {
}
public btCylinderShape() {
}
public void setMargin(float margin) {
setMarginNATIVE((int) cPointer, margin);
}
@org.teavm.jso.JSBody(params = {"addr", "margin"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCylinderShape);jsObj.setMargin(margin);")
private static native void setMarginNATIVE(int addr, float margin);
public float getMargin() {
return getMarginNATIVE((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCylinderShape);var returnedJSObj = jsObj.getMargin();return returnedJSObj;")
private static native float getMarginNATIVE(int addr);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy