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

com.badlogic.gdx.physics.bullet.collision.btConvexInternalShape 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;

import com.badlogic.gdx.physics.bullet.linearmath.btVector3;
import com.badlogic.gdx.math.Vector3;

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

    public static btConvexInternalShape WRAPPER_GEN_01 = new btConvexInternalShape(false);

    public btConvexInternalShape(boolean cMemoryOwn) {
    }

    public btConvexInternalShape() {
    }

    public void setImplicitShapeDimensions(btVector3 dimensions) {
        setImplicitShapeDimensionsNATIVE((int) cPointer, (int) dimensions.getCPointer());
    }

    @org.teavm.jso.JSBody(params = {"addr", "dimensionsAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btConvexInternalShape);jsObj.setImplicitShapeDimensions(dimensionsAddr);")
    private static native void setImplicitShapeDimensionsNATIVE(int addr, int dimensionsAddr);

    public void setImplicitShapeDimensions(Vector3 dimensionsGDX) {
        btVector3.convert(dimensionsGDX, btVector3.TEMP_0);
        btVector3 dimensions = btVector3.TEMP_0;
        setImplicitShapeDimensionsNATIVE((int) cPointer, (int) dimensions.getCPointer());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy