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

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

/**
 * @author xpenatan
 */
public class btPersistentManifold extends btTypedObject {

    public static btPersistentManifold WRAPPER_GEN_01 = new btPersistentManifold(false);

    public btPersistentManifold(boolean cMemoryOwn) {
    }

    public btPersistentManifold() {
    }

    public btCollisionObject getBody0() {
        int pointer = getBody0NATIVE((int) cPointer);
        btCollisionObject.WRAPPER_GEN_01.setPointer(pointer);
        return btCollisionObject.WRAPPER_GEN_01;
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btPersistentManifold);var returnedJSObj = jsObj.getBody0();return Bullet.getPointer(returnedJSObj);")
    private static native int getBody0NATIVE(int addr);

    public btCollisionObject getBody1() {
        int pointer = getBody1NATIVE((int) cPointer);
        btCollisionObject.WRAPPER_GEN_01.setPointer(pointer);
        return btCollisionObject.WRAPPER_GEN_01;
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btPersistentManifold);var returnedJSObj = jsObj.getBody1();return Bullet.getPointer(returnedJSObj);")
    private static native int getBody1NATIVE(int addr);

    public int getNumContacts() {
        return getNumContactsNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btPersistentManifold);var returnedJSObj = jsObj.getNumContacts();return returnedJSObj;")
    private static native int getNumContactsNATIVE(int addr);

    public btManifoldPoint getContactPoint(int index) {
        int pointer = getContactPointNATIVE((int) cPointer, index);
        btManifoldPoint.WRAPPER_GEN_01.setPointer(pointer);
        return btManifoldPoint.WRAPPER_GEN_01;
    }

    @org.teavm.jso.JSBody(params = {"addr", "index"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btPersistentManifold);var returnedJSObj = jsObj.getContactPoint(index);return Bullet.getPointer(returnedJSObj);")
    private static native int getContactPointNATIVE(int addr, int index);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy