com.badlogic.gdx.physics.bullet.dynamics.btFixedConstraint 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.math.Matrix4;
import com.badlogic.gdx.physics.bullet.linearmath.btTransform;
/**
* @author xpenatan
*/
public class btFixedConstraint extends btGeneric6DofSpring2Constraint {
public static btFixedConstraint WRAPPER_GEN_01 = new btFixedConstraint(false);
public btFixedConstraint(btRigidBody rbA, btRigidBody rbB, Matrix4 frameInA, Matrix4 frameInB) {
btTransform btframeInA = btTransform.TEMP_0;
btTransform btframeInB = btTransform.TEMP_1;
btTransform.convert(frameInA, btframeInA);
btTransform.convert(frameInB, btframeInB);
initObject(createNative((int) rbA.getCPointer(), (int) rbB.getCPointer(), (int) btframeInA.getCPointer(), (int) btframeInB.getCPointer()), true);
}
@org.teavm.jso.JSBody(params = {"rbAAddr", "rbBAddr", "frameInAAddr", "frameInBAddr"}, script = "var jsObj = new Bullet.btFixedConstraint(rbAAddr, rbBAddr, frameInAAddr, frameInBAddr); return Bullet.getPointer(jsObj);")
private static native int createNative(int rbAAddr, int rbBAddr, int frameInAAddr, int frameInBAddr);
@Override
protected void deleteNative() {
deleteNative((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btFixedConstraint); Bullet.destroy(jsObj);")
private static native void deleteNative(int addr);
public btFixedConstraint(boolean cMemoryOwn) {
}
public btFixedConstraint() {
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy