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

com.badlogic.gdx.physics.bullet.dynamics.btDiscreteDynamicsWorld 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.collision.btBroadphaseInterface;
import com.badlogic.gdx.physics.bullet.collision.btCollisionConfiguration;
import com.badlogic.gdx.physics.bullet.collision.btDispatcher;

/**
 * @author xpenatan
 */
public class btDiscreteDynamicsWorld extends btDynamicsWorld {

    public static btDiscreteDynamicsWorld WRAPPER_GEN_01 = new btDiscreteDynamicsWorld(false);

    public btDiscreteDynamicsWorld(btDispatcher dispatcher, btBroadphaseInterface pairCache, btConstraintSolver constraintSolver, btCollisionConfiguration collisionConfiguration) {
        initObject(createNative((int) dispatcher.getCPointer(), (int) pairCache.getCPointer(), (int) constraintSolver.getCPointer(), (int) collisionConfiguration.getCPointer()), true);
    }

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

    @org.teavm.jso.JSBody(params = {"dispatcherAddr", "pairCacheAddr", "constraintSolverAddr", "collisionConfigurationAddr"}, script = "var dispatcherJSObj = Bullet.wrapPointer(dispatcherAddr, Bullet.btDispatcher); var broadphaceJSObj = Bullet.wrapPointer(pairCacheAddr, Bullet.btBroadphaseInterface); var solverJSObj = Bullet.wrapPointer(constraintSolverAddr, Bullet.btConstraintSolver); var configJSObj = Bullet.wrapPointer(collisionConfigurationAddr, Bullet.btCollisionConfiguration); var jsObj = new Bullet.btDiscreteDynamicsWorld(dispatcherJSObj, broadphaceJSObj, solverJSObj, configJSObj); return Bullet.getPointer(jsObj);")
    private static native int createNative(int dispatcherAddr, int pairCacheAddr, int constraintSolverAddr, int collisionConfigurationAddr);

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

    public btDiscreteDynamicsWorld(boolean cMemoryOwn) {
    }

    public btDiscreteDynamicsWorld() {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy