All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.badlogic.gdx.physics.bullet.collision.btCapsuleShape Maven / Gradle / Ivy

There is a newer version: 1.0.0-b6
Show newest version
/*-------------------------------------------------------
 * This file was generated by JParser
 *
 * Do not make changes to this file
 *-------------------------------------------------------*/
package com.badlogic.gdx.physics.bullet.collision;

/**
 * @author xpenatan
 */
public class btCapsuleShape extends btConvexInternalShape {

    public static btCapsuleShape WRAPPER_GEN_01 = new btCapsuleShape(false);

    public btCapsuleShape(float radius, float height) {
        initObject(createNative(radius, height), true);
    }

    @org.teavm.jso.JSBody(params = {"radius", "height"}, script = "var jsObj = new Bullet.btCapsuleShape(radius, height); return Bullet.getPointer(jsObj);")
    private static native int createNative(float radius, float height);

    @Override
    protected void deleteNative() {
        deleteNative((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCapsuleShape); Bullet.destroy(jsObj);")
    private static native void deleteNative(int addr);

    public btCapsuleShape(boolean cMemoryOwn) {
    }

    public btCapsuleShape() {
    }

    public void setMargin(float margin) {
        setMarginNATIVE((int) cPointer, margin);
    }

    @org.teavm.jso.JSBody(params = {"addr", "margin"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCapsuleShape);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.btCapsuleShape);var returnedJSObj = jsObj.getMargin();return returnedJSObj;")
    private static native float getMarginNATIVE(int addr);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy