com.badlogic.gdx.physics.bullet.collision.RayResultCallback 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.collision;
import com.badlogic.gdx.physics.bullet.BulletBase;
/**
* @author xpenatan
*/
public class RayResultCallback extends BulletBase {
public static RayResultCallback WRAPPER_GEN_01 = new RayResultCallback(false);
public void setFlags(long value) {
setFlags((int) cPointer, (int) value);
}
public void setCollisionObject(btCollisionObject value) {
setCollisionObject((int) cPointer, value != null ? (int) value.getCPointer() : 0);
}
@org.teavm.jso.JSBody(params = {"addr", "collisionObjAddr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.RayResultCallback); if(collisionObjAddr == 0) { jsObj.set_m_collisionObject(0); } else { var jsColObj = Bullet.wrapPointer(collisionObjAddr, Bullet.btCollisionObject); jsObj.set_m_collisionObject(jsColObj); }")
private static native void setCollisionObject(int addr, int collisionObjAddr);
public btCollisionObject getCollisionObject() {
long collisionObjectAddr = getCollisionObject((int) cPointer);
if (collisionObjectAddr != 0) {
btCollisionObject.temp01.setPointer(collisionObjectAddr);
return btCollisionObject.temp01;
}
return null;
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.RayResultCallback); return Bullet.getPointer(jsObj.get_m_collisionObject());")
private static native int getCollisionObject(int addr);
public void setClosestHitFraction(float value) {
setClosestHitFraction((int) cPointer, value);
}
@org.teavm.jso.JSBody(params = {"addr", "value"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.RayResultCallback); jsObj.set_m_closestHitFraction(value);")
private static native void setClosestHitFraction(int addr, float value);
public float getClosestHitFraction() {
return getClosestHitFraction((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.RayResultCallback); return jsObj.get_m_closestHitFraction();")
private static native float getClosestHitFraction(int addr);
public void setCollisionFilterGroup(int value) {
setCollisionFilterGroup((int) cPointer, value);
}
@org.teavm.jso.JSBody(params = {"addr", "value"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.RayResultCallback); jsObj.set_m_collisionFilterGroup(value);")
private static native void setCollisionFilterGroup(int addr, int value);
public int getCollisionFilterGroup() {
return getCollisionFilterGroup((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.RayResultCallback); return jsObj.get_m_collisionFilterGroup();")
private static native int getCollisionFilterGroup(int addr);
public void setCollisionFilterMask(int value) {
setCollisionFilterMask((int) cPointer, value);
}
@org.teavm.jso.JSBody(params = {"addr", "value"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.RayResultCallback); jsObj.set_m_collisionFilterMask(value);")
private static native void setCollisionFilterMask(int addr, int value);
public int getCollisionFilterMask() {
return getCollisionFilterMask((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.RayResultCallback); return jsObj.get_m_collisionFilterMask();")
private static native int getCollisionFilterMask(int addr);
@org.teavm.jso.JSBody(params = {"addr", "value"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.RayResultCallback); jsObj.set_m_flags(value);")
private static native void setFlags(int addr, int value);
public long getFlags() {
return getFlags((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.RayResultCallback); return jsObj.get_m_flags();")
private static native int getFlags(int addr);
public RayResultCallback(boolean cMemoryOwn) {
}
public RayResultCallback() {
}
public boolean hasHit() {
return hasHitNATIVE((int) cPointer);
}
@org.teavm.jso.JSBody(params = {"addr"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.RayResultCallback);var returnedJSObj = jsObj.hasHit();return returnedJSObj;")
private static native boolean hasHitNATIVE(int addr);
public float addSingleResult(LocalRayResult rayResult, boolean normalInWorldSpace) {
return addSingleResultNATIVE((int) cPointer, (int) rayResult.getCPointer(), normalInWorldSpace);
}
@org.teavm.jso.JSBody(params = {"addr", "rayResultAddr", "normalInWorldSpace"}, script = "var jsObj = Bullet.wrapPointer(addr, Bullet.RayResultCallback);var returnedJSObj = jsObj.addSingleResult(rayResultAddr, normalInWorldSpace);return returnedJSObj;")
private static native float addSingleResultNATIVE(int addr, int rayResultAddr, boolean normalInWorldSpace);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy