com.badlogic.gdx.physics.bullet.dynamics.btDynamicsWorld Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gdx-bullet-teavm Show documentation
Show all versions of gdx-bullet-teavm Show documentation
Tool to generate libgdx to javascript using teaVM
/*-------------------------------------------------------
* 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.btCollisionWorld;
import com.badlogic.gdx.physics.bullet.linearmath.btVector3;
import com.badlogic.gdx.math.Vector3;
/**
* @author xpenatan
*/
public class btDynamicsWorld extends btCollisionWorld {
public static btDynamicsWorld WRAPPER_GEN_01 = new btDynamicsWorld(false);
public btDynamicsWorld(boolean cMemoryOwn) {
}
public btDynamicsWorld() {
}
public int stepSimulation(float timeStep, int maxSubSteps, float fixedTimeStep) {
return stepSimulationNATIVE((int) cPointer, timeStep, maxSubSteps, fixedTimeStep);
}
@org.teavm.jso.JSBody(params = {"addr", "timeStep", "maxSubSteps", "fixedTimeStep"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btDynamicsWorld);var returnedJSObj = jsObj.stepSimulation(timeStep, maxSubSteps, fixedTimeStep);return returnedJSObj;")
private static native int stepSimulationNATIVE(int addr, float timeStep, int maxSubSteps, float fixedTimeStep);
public int stepSimulation(float timeStep, int maxSubSteps) {
return stepSimulationNATIVE((int) cPointer, timeStep, maxSubSteps);
}
@org.teavm.jso.JSBody(params = {"addr", "timeStep", "maxSubSteps"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btDynamicsWorld);var returnedJSObj = jsObj.stepSimulation(timeStep, maxSubSteps);return returnedJSObj;")
private static native int stepSimulationNATIVE(int addr, float timeStep, int maxSubSteps);
public int stepSimulation(float timeStep) {
return stepSimulationNATIVE((int) cPointer, timeStep);
}
@org.teavm.jso.JSBody(params = {"addr", "timeStep"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btDynamicsWorld);var returnedJSObj = jsObj.stepSimulation(timeStep);return returnedJSObj;")
private static native int stepSimulationNATIVE(int addr, float timeStep);
public void addAction(btActionInterface action) {
addActionNATIVE((int) cPointer, (int) action.getCPointer());
}
@org.teavm.jso.JSBody(params = {"addr", "actionAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btDynamicsWorld);jsObj.addAction(actionAddr);")
private static native void addActionNATIVE(int addr, int actionAddr);
public void removeAction(btActionInterface action) {
removeActionNATIVE((int) cPointer, (int) action.getCPointer());
}
@org.teavm.jso.JSBody(params = {"addr", "actionAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btDynamicsWorld);jsObj.removeAction(actionAddr);")
private static native void removeActionNATIVE(int addr, int actionAddr);
public btContactSolverInfo getSolverInfo() {
int pointer = getSolverInfoNATIVE((int) cPointer);
btContactSolverInfo.WRAPPER_GEN_01.setPointer(pointer);
return btContactSolverInfo.WRAPPER_GEN_01;
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btDynamicsWorld);var returnedJSObj = jsObj.getSolverInfo();return Bullet.getPointer(returnedJSObj);")
private static native int getSolverInfoNATIVE(int addr);
public void addRigidBody(btRigidBody body) {
addRigidBodyNATIVE((int) cPointer, (int) body.getCPointer());
}
@org.teavm.jso.JSBody(params = {"addr", "bodyAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btDynamicsWorld);jsObj.addRigidBody(bodyAddr);")
private static native void addRigidBodyNATIVE(int addr, int bodyAddr);
public void addRigidBody(btRigidBody body, int group, int mask) {
addRigidBodyNATIVE((int) cPointer, (int) body.getCPointer(), group, mask);
}
@org.teavm.jso.JSBody(params = {"addr", "bodyAddr", "group", "mask"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btDynamicsWorld);jsObj.addRigidBody(bodyAddr, group, mask);")
private static native void addRigidBodyNATIVE(int addr, int bodyAddr, int group, int mask);
public void removeRigidBody(btRigidBody body) {
removeRigidBodyNATIVE((int) cPointer, (int) body.getCPointer());
}
@org.teavm.jso.JSBody(params = {"addr", "bodyAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btDynamicsWorld);jsObj.removeRigidBody(bodyAddr);")
private static native void removeRigidBodyNATIVE(int addr, int bodyAddr);
public void setGravity(btVector3 gravity) {
setGravityNATIVE((int) cPointer, (int) gravity.getCPointer());
}
@org.teavm.jso.JSBody(params = {"addr", "gravityAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btDynamicsWorld);jsObj.setGravity(gravityAddr);")
private static native void setGravityNATIVE(int addr, int gravityAddr);
public void setGravity(Vector3 gravityGDX) {
btVector3.convert(gravityGDX, btVector3.TEMP_0);
btVector3 gravity = btVector3.TEMP_0;
setGravityNATIVE((int) cPointer, (int) gravity.getCPointer());
}
public Vector3 getGravity() {
int pointer = getGravityNATIVE((int) cPointer);
btVector3.WRAPPER_GEN_01.setPointer(pointer);
btVector3.convert(btVector3.WRAPPER_GEN_01, btVector3.TEMP_GDX_01);
return btVector3.TEMP_GDX_01;
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btDynamicsWorld);var returnedJSObj = jsObj.getGravity();return Bullet.getPointer(returnedJSObj);")
private static native int getGravityNATIVE(int addr);
public void addConstraint(btTypedConstraint constraint, boolean disableCollisionsBetweenLinkedBodies) {
addConstraintNATIVE((int) cPointer, (int) constraint.getCPointer(), disableCollisionsBetweenLinkedBodies);
}
@org.teavm.jso.JSBody(params = {"addr", "constraintAddr", "disableCollisionsBetweenLinkedBodies"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btDynamicsWorld);jsObj.addConstraint(constraintAddr, disableCollisionsBetweenLinkedBodies);")
private static native void addConstraintNATIVE(int addr, int constraintAddr, boolean disableCollisionsBetweenLinkedBodies);
public void addConstraint(btTypedConstraint constraint) {
addConstraintNATIVE((int) cPointer, (int) constraint.getCPointer());
}
@org.teavm.jso.JSBody(params = {"addr", "constraintAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btDynamicsWorld);jsObj.addConstraint(constraintAddr);")
private static native void addConstraintNATIVE(int addr, int constraintAddr);
public void removeConstraint(btTypedConstraint constraint) {
removeConstraintNATIVE((int) cPointer, (int) constraint.getCPointer());
}
@org.teavm.jso.JSBody(params = {"addr", "constraintAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btDynamicsWorld);jsObj.removeConstraint(constraintAddr);")
private static native void removeConstraintNATIVE(int addr, int constraintAddr);
public void clearForces() {
clearForcesNATIVE((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btDynamicsWorld);jsObj.clearForces();")
private static native void clearForcesNATIVE(int addr);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy