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

com.badlogic.gdx.physics.bullet.collision.btCollisionObject 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.collision;

import com.badlogic.gdx.math.Matrix4;
import com.badlogic.gdx.physics.bullet.BulletBase;
import com.badlogic.gdx.physics.bullet.linearmath.VoidPtr;
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 btCollisionObject extends BulletBase {

    public static btCollisionObject WRAPPER_GEN_01 = new btCollisionObject(false);

    public long getUserPointer() {
        int userPointer = getUserPointer((int) cPointer);
        long longPointer = (long) userPointer;
        return longPointer;
    }

    public static btCollisionObject temp01 = new btCollisionObject(0);

    protected btCollisionObject(long cPointer) {
        initObject((int) cPointer, false);
    }

    btCollisionShape collisionShape;

    public void setCollisionShape(btCollisionShape collisionShape) {
        this.collisionShape = collisionShape;
        setCollisionShape((int) cPointer, collisionShape != null ? (int) collisionShape.getCPointer() : 0);
    }

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

    public btCollisionShape getCollisionShape() {
        return collisionShape;
    }

    public void setUserPointer(VoidPtr userPointer) {
    }

    public void setUserPointer(long userPointer) {
        setUserPointerNATIVE((int) cPointer, (int) userPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr", "userPointer"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject); jsObj.setUserPointer(userPointer);")
    private static native void setUserPointerNATIVE(int addr, int userPointer);

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject); var intPointer = jsObj.getUserPointer(); return intPointer;")
    private static native int getUserPointer(int addr);

    public void getWorldTransform(Matrix4 out) {
        // Gdx method
        int worldTransformAddr = (int) getWorldTransformAddr((int) cPointer);
        btTransform.convert(worldTransformAddr, out);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject); var jsTransform = jsObj.getWorldTransform(); return Bullet.getPointer(jsTransform);")
    private static native int getWorldTransformAddr(int addr);

    public btCollisionObject(boolean cMemoryOwn) {
    }

    public btCollisionObject() {
    }

    public boolean mergesSimulationIslands() {
        return mergesSimulationIslandsNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.mergesSimulationIslands();return returnedJSObj;")
    private static native boolean mergesSimulationIslandsNATIVE(int addr);

    public Vector3 getAnisotropicFriction() {
        int pointer = getAnisotropicFrictionNATIVE((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.btCollisionObject);var returnedJSObj = jsObj.getAnisotropicFriction();return Bullet.getPointer(returnedJSObj);")
    private static native int getAnisotropicFrictionNATIVE(int addr);

    public void setAnisotropicFriction(btVector3 anisotropicFriction, int frictionMode) {
        setAnisotropicFrictionNATIVE((int) cPointer, (int) anisotropicFriction.getCPointer(), frictionMode);
    }

    @org.teavm.jso.JSBody(params = {"addr", "anisotropicFrictionAddr", "frictionMode"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setAnisotropicFriction(anisotropicFrictionAddr, frictionMode);")
    private static native void setAnisotropicFrictionNATIVE(int addr, int anisotropicFrictionAddr, int frictionMode);

    public void setAnisotropicFriction(Vector3 anisotropicFrictionGDX, int frictionMode) {
        btVector3.convert(anisotropicFrictionGDX, btVector3.TEMP_0);
        btVector3 anisotropicFriction = btVector3.TEMP_0;
        setAnisotropicFrictionNATIVE((int) cPointer, (int) anisotropicFriction.getCPointer(), frictionMode);
    }

    public boolean hasAnisotropicFriction(int frictionMode) {
        return hasAnisotropicFrictionNATIVE((int) cPointer, frictionMode);
    }

    @org.teavm.jso.JSBody(params = {"addr", "frictionMode"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.hasAnisotropicFriction(frictionMode);return returnedJSObj;")
    private static native boolean hasAnisotropicFrictionNATIVE(int addr, int frictionMode);

    public boolean hasAnisotropicFriction() {
        return hasAnisotropicFrictionNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.hasAnisotropicFriction();return returnedJSObj;")
    private static native boolean hasAnisotropicFrictionNATIVE(int addr);

    public void setContactProcessingThreshold(float contactProcessingThreshold) {
        setContactProcessingThresholdNATIVE((int) cPointer, contactProcessingThreshold);
    }

    @org.teavm.jso.JSBody(params = {"addr", "contactProcessingThreshold"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setContactProcessingThreshold(contactProcessingThreshold);")
    private static native void setContactProcessingThresholdNATIVE(int addr, float contactProcessingThreshold);

    public float getContactProcessingThreshold() {
        return getContactProcessingThresholdNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.getContactProcessingThreshold();return returnedJSObj;")
    private static native float getContactProcessingThresholdNATIVE(int addr);

    public boolean isStaticObject() {
        return isStaticObjectNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.isStaticObject();return returnedJSObj;")
    private static native boolean isStaticObjectNATIVE(int addr);

    public boolean isKinematicObject() {
        return isKinematicObjectNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.isKinematicObject();return returnedJSObj;")
    private static native boolean isKinematicObjectNATIVE(int addr);

    public boolean isStaticOrKinematicObject() {
        return isStaticOrKinematicObjectNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.isStaticOrKinematicObject();return returnedJSObj;")
    private static native boolean isStaticOrKinematicObjectNATIVE(int addr);

    public boolean hasContactResponse() {
        return hasContactResponseNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.hasContactResponse();return returnedJSObj;")
    private static native boolean hasContactResponseNATIVE(int addr);

    public void setIgnoreCollisionCheck(btCollisionObject obj, boolean ignoreCollisionCheck) {
        setIgnoreCollisionCheckNATIVE((int) cPointer, (int) obj.getCPointer(), ignoreCollisionCheck);
    }

    @org.teavm.jso.JSBody(params = {"addr", "objAddr", "ignoreCollisionCheck"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setIgnoreCollisionCheck(objAddr, ignoreCollisionCheck);")
    private static native void setIgnoreCollisionCheckNATIVE(int addr, int objAddr, boolean ignoreCollisionCheck);

    public boolean checkCollideWithOverride(btCollisionObject obj) {
        return checkCollideWithOverrideNATIVE((int) cPointer, (int) obj.getCPointer());
    }

    @org.teavm.jso.JSBody(params = {"addr", "objAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.checkCollideWithOverride(objAddr);return returnedJSObj;")
    private static native boolean checkCollideWithOverrideNATIVE(int addr, int objAddr);

    public int getActivationState() {
        return getActivationStateNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.getActivationState();return returnedJSObj;")
    private static native int getActivationStateNATIVE(int addr);

    public void setActivationState(int newState) {
        setActivationStateNATIVE((int) cPointer, newState);
    }

    @org.teavm.jso.JSBody(params = {"addr", "newState"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setActivationState(newState);")
    private static native void setActivationStateNATIVE(int addr, int newState);

    public void setDeactivationTime(float time) {
        setDeactivationTimeNATIVE((int) cPointer, time);
    }

    @org.teavm.jso.JSBody(params = {"addr", "time"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setDeactivationTime(time);")
    private static native void setDeactivationTimeNATIVE(int addr, float time);

    public float getDeactivationTime() {
        return getDeactivationTimeNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.getDeactivationTime();return returnedJSObj;")
    private static native float getDeactivationTimeNATIVE(int addr);

    public void forceActivationState(int newState) {
        forceActivationStateNATIVE((int) cPointer, newState);
    }

    @org.teavm.jso.JSBody(params = {"addr", "newState"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.forceActivationState(newState);")
    private static native void forceActivationStateNATIVE(int addr, int newState);

    public void activate(boolean forceActivation) {
        activateNATIVE((int) cPointer, forceActivation);
    }

    @org.teavm.jso.JSBody(params = {"addr", "forceActivation"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.activate(forceActivation);")
    private static native void activateNATIVE(int addr, boolean forceActivation);

    public void activate() {
        activateNATIVE((int) cPointer);
    }

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

    public boolean isActive() {
        return isActiveNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.isActive();return returnedJSObj;")
    private static native boolean isActiveNATIVE(int addr);

    public void setRestitution(float rest) {
        setRestitutionNATIVE((int) cPointer, rest);
    }

    @org.teavm.jso.JSBody(params = {"addr", "rest"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setRestitution(rest);")
    private static native void setRestitutionNATIVE(int addr, float rest);

    public float getRestitution() {
        return getRestitutionNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.getRestitution();return returnedJSObj;")
    private static native float getRestitutionNATIVE(int addr);

    public void setFriction(float frict) {
        setFrictionNATIVE((int) cPointer, frict);
    }

    @org.teavm.jso.JSBody(params = {"addr", "frict"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setFriction(frict);")
    private static native void setFrictionNATIVE(int addr, float frict);

    public float getFriction() {
        return getFrictionNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.getFriction();return returnedJSObj;")
    private static native float getFrictionNATIVE(int addr);

    public void setRollingFriction(float frict) {
        setRollingFrictionNATIVE((int) cPointer, frict);
    }

    @org.teavm.jso.JSBody(params = {"addr", "frict"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setRollingFriction(frict);")
    private static native void setRollingFrictionNATIVE(int addr, float frict);

    public float getRollingFriction() {
        return getRollingFrictionNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.getRollingFriction();return returnedJSObj;")
    private static native float getRollingFrictionNATIVE(int addr);

    public Matrix4 getWorldTransform() {
        int pointer = getWorldTransformNATIVE((int) cPointer);
        btTransform.WRAPPER_GEN_01.setPointer(pointer);
        btTransform.convert(btTransform.WRAPPER_GEN_01, btTransform.TEMP_GDX_01);
        return btTransform.TEMP_GDX_01;
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.getWorldTransform();return Bullet.getPointer(returnedJSObj);")
    private static native int getWorldTransformNATIVE(int addr);

    public void setWorldTransform(btTransform worldTrans) {
        setWorldTransformNATIVE((int) cPointer, (int) worldTrans.getCPointer());
    }

    @org.teavm.jso.JSBody(params = {"addr", "worldTransAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setWorldTransform(worldTransAddr);")
    private static native void setWorldTransformNATIVE(int addr, int worldTransAddr);

    public void setWorldTransform(Matrix4 worldTransGDX) {
        btTransform.convert(worldTransGDX, btTransform.TEMP_0);
        btTransform worldTrans = btTransform.TEMP_0;
        setWorldTransformNATIVE((int) cPointer, (int) worldTrans.getCPointer());
    }

    public btBroadphaseProxy getBroadphaseHandle() {
        int pointer = getBroadphaseHandleNATIVE((int) cPointer);
        btBroadphaseProxy.WRAPPER_GEN_01.setPointer(pointer);
        return btBroadphaseProxy.WRAPPER_GEN_01;
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.getBroadphaseHandle();return Bullet.getPointer(returnedJSObj);")
    private static native int getBroadphaseHandleNATIVE(int addr);

    public void setBroadphaseHandle(btBroadphaseProxy handle) {
        setBroadphaseHandleNATIVE((int) cPointer, (int) handle.getCPointer());
    }

    @org.teavm.jso.JSBody(params = {"addr", "handleAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setBroadphaseHandle(handleAddr);")
    private static native void setBroadphaseHandleNATIVE(int addr, int handleAddr);

    public Matrix4 getInterpolationWorldTransform() {
        int pointer = getInterpolationWorldTransformNATIVE((int) cPointer);
        btTransform.WRAPPER_GEN_01.setPointer(pointer);
        btTransform.convert(btTransform.WRAPPER_GEN_01, btTransform.TEMP_GDX_01);
        return btTransform.TEMP_GDX_01;
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.getInterpolationWorldTransform();return Bullet.getPointer(returnedJSObj);")
    private static native int getInterpolationWorldTransformNATIVE(int addr);

    public void setInterpolationWorldTransform(btTransform trans) {
        setInterpolationWorldTransformNATIVE((int) cPointer, (int) trans.getCPointer());
    }

    @org.teavm.jso.JSBody(params = {"addr", "transAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setInterpolationWorldTransform(transAddr);")
    private static native void setInterpolationWorldTransformNATIVE(int addr, int transAddr);

    public void setInterpolationWorldTransform(Matrix4 transGDX) {
        btTransform.convert(transGDX, btTransform.TEMP_0);
        btTransform trans = btTransform.TEMP_0;
        setInterpolationWorldTransformNATIVE((int) cPointer, (int) trans.getCPointer());
    }

    public void setInterpolationLinearVelocity(btVector3 linvel) {
        setInterpolationLinearVelocityNATIVE((int) cPointer, (int) linvel.getCPointer());
    }

    @org.teavm.jso.JSBody(params = {"addr", "linvelAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setInterpolationLinearVelocity(linvelAddr);")
    private static native void setInterpolationLinearVelocityNATIVE(int addr, int linvelAddr);

    public void setInterpolationLinearVelocity(Vector3 linvelGDX) {
        btVector3.convert(linvelGDX, btVector3.TEMP_0);
        btVector3 linvel = btVector3.TEMP_0;
        setInterpolationLinearVelocityNATIVE((int) cPointer, (int) linvel.getCPointer());
    }

    public void setInterpolationAngularVelocity(btVector3 angvel) {
        setInterpolationAngularVelocityNATIVE((int) cPointer, (int) angvel.getCPointer());
    }

    @org.teavm.jso.JSBody(params = {"addr", "angvelAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setInterpolationAngularVelocity(angvelAddr);")
    private static native void setInterpolationAngularVelocityNATIVE(int addr, int angvelAddr);

    public void setInterpolationAngularVelocity(Vector3 angvelGDX) {
        btVector3.convert(angvelGDX, btVector3.TEMP_0);
        btVector3 angvel = btVector3.TEMP_0;
        setInterpolationAngularVelocityNATIVE((int) cPointer, (int) angvel.getCPointer());
    }

    public Vector3 getInterpolationLinearVelocity() {
        int pointer = getInterpolationLinearVelocityNATIVE((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.btCollisionObject);var returnedJSObj = jsObj.getInterpolationLinearVelocity();return Bullet.getPointer(returnedJSObj);")
    private static native int getInterpolationLinearVelocityNATIVE(int addr);

    public Vector3 getInterpolationAngularVelocity() {
        int pointer = getInterpolationAngularVelocityNATIVE((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.btCollisionObject);var returnedJSObj = jsObj.getInterpolationAngularVelocity();return Bullet.getPointer(returnedJSObj);")
    private static native int getInterpolationAngularVelocityNATIVE(int addr);

    public int getIslandTag() {
        return getIslandTagNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.getIslandTag();return returnedJSObj;")
    private static native int getIslandTagNATIVE(int addr);

    public void setIslandTag(int tag) {
        setIslandTagNATIVE((int) cPointer, tag);
    }

    @org.teavm.jso.JSBody(params = {"addr", "tag"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setIslandTag(tag);")
    private static native void setIslandTagNATIVE(int addr, int tag);

    public int getCompanionId() {
        return getCompanionIdNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.getCompanionId();return returnedJSObj;")
    private static native int getCompanionIdNATIVE(int addr);

    public void setCompanionId(int id) {
        setCompanionIdNATIVE((int) cPointer, id);
    }

    @org.teavm.jso.JSBody(params = {"addr", "id"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setCompanionId(id);")
    private static native void setCompanionIdNATIVE(int addr, int id);

    public float getHitFraction() {
        return getHitFractionNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.getHitFraction();return returnedJSObj;")
    private static native float getHitFractionNATIVE(int addr);

    public void setHitFraction(float hitFraction) {
        setHitFractionNATIVE((int) cPointer, hitFraction);
    }

    @org.teavm.jso.JSBody(params = {"addr", "hitFraction"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setHitFraction(hitFraction);")
    private static native void setHitFractionNATIVE(int addr, float hitFraction);

    public int getCollisionFlags() {
        return getCollisionFlagsNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.getCollisionFlags();return returnedJSObj;")
    private static native int getCollisionFlagsNATIVE(int addr);

    public void setCollisionFlags(int flags) {
        setCollisionFlagsNATIVE((int) cPointer, flags);
    }

    @org.teavm.jso.JSBody(params = {"addr", "flags"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setCollisionFlags(flags);")
    private static native void setCollisionFlagsNATIVE(int addr, int flags);

    public float getCcdSweptSphereRadius() {
        return getCcdSweptSphereRadiusNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.getCcdSweptSphereRadius();return returnedJSObj;")
    private static native float getCcdSweptSphereRadiusNATIVE(int addr);

    public void setCcdSweptSphereRadius(float radius) {
        setCcdSweptSphereRadiusNATIVE((int) cPointer, radius);
    }

    @org.teavm.jso.JSBody(params = {"addr", "radius"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setCcdSweptSphereRadius(radius);")
    private static native void setCcdSweptSphereRadiusNATIVE(int addr, float radius);

    public float getCcdMotionThreshold() {
        return getCcdMotionThresholdNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.getCcdMotionThreshold();return returnedJSObj;")
    private static native float getCcdMotionThresholdNATIVE(int addr);

    public float getCcdSquareMotionThreshold() {
        return getCcdSquareMotionThresholdNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.getCcdSquareMotionThreshold();return returnedJSObj;")
    private static native float getCcdSquareMotionThresholdNATIVE(int addr);

    public void setCcdMotionThreshold(float ccdMotionThreshold) {
        setCcdMotionThresholdNATIVE((int) cPointer, ccdMotionThreshold);
    }

    @org.teavm.jso.JSBody(params = {"addr", "ccdMotionThreshold"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);jsObj.setCcdMotionThreshold(ccdMotionThreshold);")
    private static native void setCcdMotionThresholdNATIVE(int addr, float ccdMotionThreshold);

    public int getUserIndex() {
        return getUserIndexNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.getUserIndex();return returnedJSObj;")
    private static native int getUserIndexNATIVE(int addr);

    public void setUserIndex(int index) {
        setUserIndexNATIVE((int) cPointer, index);
    }

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

    public int getUpdateRevisionInternal() {
        return getUpdateRevisionInternalNATIVE((int) cPointer);
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.getUpdateRevisionInternal();return returnedJSObj;")
    private static native int getUpdateRevisionInternalNATIVE(int addr);

    public boolean checkCollideWith(btCollisionObject co) {
        return checkCollideWithNATIVE((int) cPointer, (int) co.getCPointer());
    }

    @org.teavm.jso.JSBody(params = {"addr", "coAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.btCollisionObject);var returnedJSObj = jsObj.checkCollideWith(coAddr);return returnedJSObj;")
    private static native boolean checkCollideWithNATIVE(int addr, int coAddr);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy