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