Ah, thanks. I forgot I could just pass the context around.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menumodel = Primitives.getBox(1.f, 1.f);
InputStream in = Resources.getSystem().openRawResource(R.raw.model);
model = Loader.load3DS(in, 1.f)[0];
Exception android.content.res.Resources$NotFoundException(<No current context>)
breakpoint hit in android.opengl.GLSurfaceView$GLThread at line 1244 by thread <11> GLThread 81.
public boolean onKeyDown(int kc, KeyEvent e) {
if (kc == KeyEvent.KEYCODE_DPAD_UP) {
if (world.checkCameraCollision(Camera.CAMERA_MOVEIN, 2.f)) {
AlertDialog alertDialog;
alertDialog = new AlertDialog.Builder(this).create();
alertDialog.setTitle("Collision");
alertDialog.setMessage("Happens.");
alertDialog.show();
}
} else if (kc == KeyEvent.KEYCODE_DPAD_DOWN) {
world.checkCameraCollision(Camera.CAMERA_MOVEOUT, 2.f);
} else {
return false;
}
return true;
}
cube = Primitives.getSphere(10); //ik...
cube.calcTextureWrapSpherical();
cube.setTexture("texture");
cube.setCollisionMode(Object3D.COLLISION_CHECK_OTHERS);
cube.strip();
cube.build();
Page created in 0.020 seconds with 12 queries.