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

com.badlogic.gdx.physics.bullet.collision.LocalRayResult 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.physics.bullet.BulletBase;
import com.badlogic.gdx.physics.bullet.linearmath.btVector3;

/**
 * @author xpenatan
 */
public class LocalRayResult extends BulletBase {

    public static LocalRayResult WRAPPER_GEN_01 = new LocalRayResult(false);

    public static LocalRayResult temp01 = new LocalRayResult();

    public LocalRayResult() {
        initObject(0, false);
    }

    public btCollisionObject getCollisionObject() {
        btCollisionObject.temp01.setPointer(getCollisionObject((int) cPointer));
        return btCollisionObject.temp01;
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.LocalRayResult); var colJSObj = jsObj.get_m_collisionObject(); return Bullet.getPointer(colJSObj);")
    private static native int getCollisionObject(int addr);

    public btVector3 getHitNormalLocal() {
        btVector3.emptyTransform.setPointer(getHitNormalLocal((int) cPointer));
        return btVector3.emptyTransform;
    }

    @org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.LocalRayResult); var vec3JSObj = jsObj.get_m_hitNormalLocal(); return Bullet.getPointer(vec3JSObj);")
    private static native int getHitNormalLocal(int addr);

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

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

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

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

    public LocalRayResult(boolean cMemoryOwn) {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy