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

com.badlogic.gdx.physics.bullet.dynamics.btGeneric6DofSpring2Constraint 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.math.Matrix4;
import com.badlogic.gdx.physics.bullet.linearmath.btTransform;
import com.badlogic.gdx.physics.bullet.linearmath.btVector3;
import com.badlogic.gdx.math.Vector3;

/**
 * @author xpenatan
 */
public class btGeneric6DofSpring2Constraint extends btTypedConstraint {

    public static btGeneric6DofSpring2Constraint WRAPPER_GEN_01 = new btGeneric6DofSpring2Constraint(false);

    protected btGeneric6DofSpring2Constraint() {
    }

    public btGeneric6DofSpring2Constraint(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.btGeneric6DofSpring2Constraint(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.btGeneric6DofSpring2Constraint); Bullet.destroy(jsObj);")
    private static native void deleteNative(int addr);

    public btGeneric6DofSpring2Constraint(boolean cMemoryOwn) {
    }

    public void setDbgDrawSize(float dbgDrawSize) {
        setDbgDrawSizeNATIVE((int) cPointer, dbgDrawSize);
    }

    @org.teavm.jso.JSBody(params = {"addr", "dbgDrawSize"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btGeneric6DofSpring2Constraint);jsObj.setDbgDrawSize(dbgDrawSize);")
    private static native void setDbgDrawSizeNATIVE(int addr, float dbgDrawSize);

    public void setLinearLowerLimit(btVector3 linearLower) {
        setLinearLowerLimitNATIVE((int) cPointer, (int) linearLower.getCPointer());
    }

    @org.teavm.jso.JSBody(params = {"addr", "linearLowerAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btGeneric6DofSpring2Constraint);jsObj.setLinearLowerLimit(linearLowerAddr);")
    private static native void setLinearLowerLimitNATIVE(int addr, int linearLowerAddr);

    public void setLinearLowerLimit(Vector3 linearLowerGDX) {
        btVector3.convert(linearLowerGDX, btVector3.TEMP_0);
        btVector3 linearLower = btVector3.TEMP_0;
        setLinearLowerLimitNATIVE((int) cPointer, (int) linearLower.getCPointer());
    }

    public void setLinearUpperLimit(btVector3 linearUpper) {
        setLinearUpperLimitNATIVE((int) cPointer, (int) linearUpper.getCPointer());
    }

    @org.teavm.jso.JSBody(params = {"addr", "linearUpperAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btGeneric6DofSpring2Constraint);jsObj.setLinearUpperLimit(linearUpperAddr);")
    private static native void setLinearUpperLimitNATIVE(int addr, int linearUpperAddr);

    public void setLinearUpperLimit(Vector3 linearUpperGDX) {
        btVector3.convert(linearUpperGDX, btVector3.TEMP_0);
        btVector3 linearUpper = btVector3.TEMP_0;
        setLinearUpperLimitNATIVE((int) cPointer, (int) linearUpper.getCPointer());
    }

    public void setAngularLowerLimit(btVector3 linearLower) {
        setAngularLowerLimitNATIVE((int) cPointer, (int) linearLower.getCPointer());
    }

    @org.teavm.jso.JSBody(params = {"addr", "linearLowerAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btGeneric6DofSpring2Constraint);jsObj.setAngularLowerLimit(linearLowerAddr);")
    private static native void setAngularLowerLimitNATIVE(int addr, int linearLowerAddr);

    public void setAngularLowerLimit(Vector3 linearLowerGDX) {
        btVector3.convert(linearLowerGDX, btVector3.TEMP_0);
        btVector3 linearLower = btVector3.TEMP_0;
        setAngularLowerLimitNATIVE((int) cPointer, (int) linearLower.getCPointer());
    }

    public void setAngularUpperLimit(btVector3 linearUpper) {
        setAngularUpperLimitNATIVE((int) cPointer, (int) linearUpper.getCPointer());
    }

    @org.teavm.jso.JSBody(params = {"addr", "linearUpperAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btGeneric6DofSpring2Constraint);jsObj.setAngularUpperLimit(linearUpperAddr);")
    private static native void setAngularUpperLimitNATIVE(int addr, int linearUpperAddr);

    public void setAngularUpperLimit(Vector3 linearUpperGDX) {
        btVector3.convert(linearUpperGDX, btVector3.TEMP_0);
        btVector3 linearUpper = btVector3.TEMP_0;
        setAngularUpperLimitNATIVE((int) cPointer, (int) linearUpper.getCPointer());
    }

    public void setLimit(int axis, float lo, float hi) {
        setLimitNATIVE((int) cPointer, axis, lo, hi);
    }

    @org.teavm.jso.JSBody(params = {"addr", "axis", "lo", "hi"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btGeneric6DofSpring2Constraint);jsObj.setLimit(axis, lo, hi);")
    private static native void setLimitNATIVE(int addr, int axis, float lo, float hi);

    public void setStiffness(int index, float stiffness) {
        setStiffnessNATIVE((int) cPointer, index, stiffness);
    }

    @org.teavm.jso.JSBody(params = {"addr", "index", "stiffness"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btGeneric6DofSpring2Constraint);jsObj.setStiffness(index, stiffness);")
    private static native void setStiffnessNATIVE(int addr, int index, float stiffness);

    public void setDamping(int index, float damping) {
        setDampingNATIVE((int) cPointer, index, damping);
    }

    @org.teavm.jso.JSBody(params = {"addr", "index", "damping"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btGeneric6DofSpring2Constraint);jsObj.setDamping(index, damping);")
    private static native void setDampingNATIVE(int addr, int index, float damping);

    public void setBounce(int index, float bounce) {
        setBounceNATIVE((int) cPointer, index, bounce);
    }

    @org.teavm.jso.JSBody(params = {"addr", "index", "bounce"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btGeneric6DofSpring2Constraint);jsObj.setBounce(index, bounce);")
    private static native void setBounceNATIVE(int addr, int index, float bounce);

    public void setServo(int index, boolean onOff) {
        setServoNATIVE((int) cPointer, index, onOff);
    }

    @org.teavm.jso.JSBody(params = {"addr", "index", "onOff"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btGeneric6DofSpring2Constraint);jsObj.setServo(index, onOff);")
    private static native void setServoNATIVE(int addr, int index, boolean onOff);

    public void enableMotor(int index, boolean onOff) {
        enableMotorNATIVE((int) cPointer, index, onOff);
    }

    @org.teavm.jso.JSBody(params = {"addr", "index", "onOff"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btGeneric6DofSpring2Constraint);jsObj.enableMotor(index, onOff);")
    private static native void enableMotorNATIVE(int addr, int index, boolean onOff);

    public void enableSpring(int index, boolean onOff) {
        enableSpringNATIVE((int) cPointer, index, onOff);
    }

    @org.teavm.jso.JSBody(params = {"addr", "index", "onOff"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btGeneric6DofSpring2Constraint);jsObj.enableSpring(index, onOff);")
    private static native void enableSpringNATIVE(int addr, int index, boolean onOff);

    public void setTargetVelocity(int index, float velocity) {
        setTargetVelocityNATIVE((int) cPointer, index, velocity);
    }

    @org.teavm.jso.JSBody(params = {"addr", "index", "velocity"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btGeneric6DofSpring2Constraint);jsObj.setTargetVelocity(index, velocity);")
    private static native void setTargetVelocityNATIVE(int addr, int index, float velocity);

    public void setMaxMotorForce(int index, float force) {
        setMaxMotorForceNATIVE((int) cPointer, index, force);
    }

    @org.teavm.jso.JSBody(params = {"addr", "index", "force"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btGeneric6DofSpring2Constraint);jsObj.setMaxMotorForce(index, force);")
    private static native void setMaxMotorForceNATIVE(int addr, int index, float force);

    public void setEquilibriumPoint() {
        setEquilibriumPointNATIVE((int) cPointer);
    }

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

    public void setEquilibriumPoint(int index) {
        setEquilibriumPointNATIVE((int) cPointer, index);
    }

    @org.teavm.jso.JSBody(params = {"addr", "index"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btGeneric6DofSpring2Constraint);jsObj.setEquilibriumPoint(index);")
    private static native void setEquilibriumPointNATIVE(int addr, int index);

    public void setEquilibriumPoint(int index, float val) {
        setEquilibriumPointNATIVE((int) cPointer, index, val);
    }

    @org.teavm.jso.JSBody(params = {"addr", "index", "val"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btGeneric6DofSpring2Constraint);jsObj.setEquilibriumPoint(index, val);")
    private static native void setEquilibriumPointNATIVE(int addr, int index, float val);

    public void setFrames(btTransform frameA, btTransform frameB) {
        setFramesNATIVE((int) cPointer, (int) frameA.getCPointer(), (int) frameB.getCPointer());
    }

    @org.teavm.jso.JSBody(params = {"addr", "frameAAddr", "frameBAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btGeneric6DofSpring2Constraint);jsObj.setFrames(frameAAddr, frameBAddr);")
    private static native void setFramesNATIVE(int addr, int frameAAddr, int frameBAddr);

    public void setFrames(Matrix4 frameAGDX, Matrix4 frameBGDX) {
        btTransform.convert(frameAGDX, btTransform.TEMP_0);
        btTransform frameA = btTransform.TEMP_0;
        btTransform.convert(frameBGDX, btTransform.TEMP_1);
        btTransform frameB = btTransform.TEMP_1;
        setFramesNATIVE((int) cPointer, (int) frameA.getCPointer(), (int) frameB.getCPointer());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy