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

com.badlogic.gdx.physics.bullet.dynamics.btActionInterface 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.dynamics;

import com.badlogic.gdx.physics.bullet.BulletBase;
import com.badlogic.gdx.physics.bullet.collision.btCollisionWorld;
import com.badlogic.gdx.physics.bullet.linearmath.btIDebugDraw;

/**
 * @author xpenatan
 */
public class btActionInterface extends BulletBase {

    public static btActionInterface WRAPPER_GEN_01 = new btActionInterface(false);

    public btActionInterface(boolean cMemoryOwn) {
    }

    public btActionInterface() {
    }

    public void updateAction(btCollisionWorld collisionWorld, float deltaTimeStep) {
        updateActionNATIVE((int) cPointer, (int) collisionWorld.getCPointer(), deltaTimeStep);
    }

    @org.teavm.jso.JSBody(params = {"addr", "collisionWorldAddr", "deltaTimeStep"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btActionInterface);jsObj.updateAction(collisionWorldAddr, deltaTimeStep);")
    private static native void updateActionNATIVE(int addr, int collisionWorldAddr, float deltaTimeStep);

    public void debugDraw(btIDebugDraw debugDrawer) {
        debugDrawNATIVE((int) cPointer, (int) debugDrawer.getCPointer());
    }

    @org.teavm.jso.JSBody(params = {"addr", "debugDrawerAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btActionInterface);jsObj.debugDraw(debugDrawerAddr);")
    private static native void debugDrawNATIVE(int addr, int debugDrawerAddr);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy